Plugin Directory

Changeset 2205567


Ignore:
Timestamp:
12/03/2019 10:32:38 PM (6 years ago)
Author:
pluginbyvisualwebz
Message:

fixed yoast premium problem and added automatically focus keyphrase adder function

Location:
multiple-page-generator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • multiple-page-generator/trunk/multiple-page-generator.php

    r2122455 r2205567  
    4949//functions that displays error message to install Yoast plugin (if not installed or activated)
    5050function mpg_show_message(){
     51
     52    if(file_exists(ABSPATH . '/wp-content/plugins/wordpress-seo-premium/wp-seo-premium.php')){
     53        if(is_plugin_active('wordpress-seo-premium/wp-seo-premium.php')){
     54            return true;
     55    }else{
     56             $url = wp_nonce_url(admin_url('plugins.php?action=activate&plugin=wordpress-seo-premium/wp-seo-premium.php'), 'activate-plugin_wordpress-seo-premium/wp-seo-premium.php');
     57        echo '<br>
     58            <div class="notice notice-info is-dismissible">
     59                <p>Please activate required plugin (Yoast premium) to get better SEO purposes. <a href="'.$url.'">Activate Yoast</a></p>
     60            </div><br>';
     61            return false;
     62        }
     63    }
    5164    if (!is_plugin_active('wordpress-seo/wp-seo.php')) {
    5265        if(!file_exists(ABSPATH . '/wp-content/plugins/wordpress-seo/wp-seo.php')){
  • multiple-page-generator/trunk/readme.txt

    r2122455 r2205567  
    3232== Changelog ==
    3333
     34= 1.3 =
     35- Plugin automatically adds Focus keyphrase from the title.
     36
    3437= 1.2 =
    3538- Plugin now works with both free and premium versions of Yoast.
  • multiple-page-generator/trunk/view/functions/mpgCreatePages.php

    r2122455 r2205567  
    9595        //SEO KEYWORD FUNCTION
    9696
    97         // update_post_meta($postId, '_yoast_wpseo_focuskw', );
     97        update_post_meta($postId, '_yoast_wpseo_focuskw', $title);
    9898
    9999
Note: See TracChangeset for help on using the changeset viewer.