DataSource/WpciQuery.php
public function addWpEnv()
    {
        $wpp = $this->wpProvider;
        $data = [
            'site-url' => $wpp->getBlogInfo('url'),
            'site-wpurl' => $wpp->getBlogInfo('wpurl'),
            'site-description' => $wpp->getBlogInfo('description'),
            'site-rss_url' => $wpp->getBlogInfo('rss_url'),
            'site-rss2_url' => $wpp->getBlogInfo('rss2_url'),
            'site-atom_url' => $wpp->getBlogInfo('atom_url'),
            'site-comments_atom_url' => $wpp->getBlogInfo('comments_atom_url'),
            'site-comments_rss2_url' => $wpp->getBlogInfo('comments_rss2_url'),
            'site-pingback_url' => $wpp->getBlogInfo('pingback_url'),
            'site-stylesheet_url' => $wpp->getBlogInfo('stylesheet_url'),
            'site-stylesheet_directory' => $wpp->getBlogInfo('stylesheet_directory'),
            'site-template_directory' => $wpp->getBlogInfo('template_directory'),
            'site-admin_email' => $wpp->getBlogInfo('admin_email'),
            'site-charset' => $wpp->getBlogInfo('charset'),
            'site-html_type' => $wpp->getBlogInfo('html_type'),
            'site-version' => $wpp->getBlogInfo('version'),
            'site-language' => $wpp->getBlogInfo('language'),
            'site-name' => $wpp->getBlogInfo('name'),
        ];

        $this->mergeToTheData($data);
        return $this;
    }
public function addWpEnv()
    {
        $wpp = $this->wpProvider;
        $data = [
            'site-url' => $wpp->getBlogInfo('url'),
            'site-wpurl' => $wpp->getBlogInfo('wpurl'),
            'site-description' => $wpp->getBlogInfo('description'),
            'site-rss_url' => $wpp->getBlogInfo('rss_url'),
            'site-rss2_url' => $wpp->getBlogInfo('rss2_url'),
            'site-atom_url' => $wpp->getBlogInfo('atom_url'),
            'site-comments_atom_url' => $wpp->getBlogInfo('comments_atom_url'),
            'site-comments_rss2_url' => $wpp->getBlogInfo('comments_rss2_url'),
            'site-pingback_url' => $wpp->getBlogInfo('pingback_url'),
            'site-stylesheet_url' => $wpp->getBlogInfo('stylesheet_url'),
            'site-stylesheet_directory' => $wpp->getBlogInfo('stylesheet_directory'),
            'site-template_directory' => $wpp->getBlogInfo('template_directory'),
            'site-admin_email' => $wpp->getBlogInfo('admin_email'),
            'site-charset' => $wpp->getBlogInfo('charset'),
            'site-html_type' => $wpp->getBlogInfo('html_type'),
            'site-version' => $wpp->getBlogInfo('version'),
            'site-language' => $wpp->getBlogInfo('language'),
            'site-name' => $wpp->getBlogInfo('name'),
        ];

        $this->mergeToTheData($data);
        return $this;
    }
public function addWpEnv ( ) { $ wpp = $ this -> wpProvider ; $ data = [ 'site-url' => $ wpp -> getBlogInfo ( 'url' ) , 'site-wpurl' => $ wpp -> getBlogInfo ( 'wpurl' ) , 'site-description' => $ wpp -> getBlogInfo ( 'description' ) , 'site-rss_url' => $ wpp -> getBlogInfo ( 'rss_url' ) , 'site-rss2_url' => $ wpp -> getBlogInfo ( 'rss2_url' ) , 'site-atom_url' => $ wpp -> getBlogInfo ( 'atom_url' ) , 'site-comments_atom_url' => $ wpp -> getBlogInfo ( 'comments_atom_url' ) , 'site-comments_rss2_url' => $ wpp -> getBlogInfo ( 'comments_rss2_url' ) , 'site-pingback_url' => $ wpp -> getBlogInfo ( 'pingback_url' ) , 'site-stylesheet_url' => $ wpp -> getBlogInfo ( 'stylesheet_url' ) , 'site-stylesheet_directory' => $ wpp -> getBlogInfo ( 'stylesheet_directory' ) , 'site-template_directory' => $ wpp -> getBlogInfo ( 'template_directory' ) , 'site-admin_email' => $ wpp -> getBlogInfo ( 'admin_email' ) , 'site-charset' => $ wpp -> getBlogInfo ( 'charset' ) , 'site-html_type' => $ wpp -> getBlogInfo ( 'html_type' ) , 'site-version' => $ wpp -> getBlogInfo ( 'version' ) , 'site-language' => $ wpp -> getBlogInfo ( 'language' ) , 'site-name' => $ wpp -> getBlogInfo ( 'name' ) , ] ; $ this -> mergeToTheData ( $ data ) ; return $ this ; }
Add wordpress environment to the data
@return WpciQuery
@throws \ErrorException
Add wordpress environment to the data