Since I was busy I created a full blown plugin to remove the license nag.
No idea if a link to Dropbox is appreciated here, but in case not, here are the steps.
1: create a directory (folder) and give it a name. I.e. “remove-yoast-seo-premium-license-nag-from-admin” (do not add the beginning ” and closing ” !);
2: in this directory create a file and give it a name. I.e “remove-yoast-seo-premium-license-nag-from-admin”;
2a: make sure the file end with .php I.e. “remove-yoast-seo-premium-license-nag-from-admin.php”;
3: add the following content to your “remove-yoast-seo-premium-license-nag-from-admin.php file::
<?php
/**
* Plugin Name: Remove Yoast SEO Premium License Nag
* Plugin URI: https://yoast.com/wordpress/plugins/seo-premium/
* Description: Removes the Yoast SEO Premium license nag from your WordPress Dashboard. If you like this plugin buy a license key and receive support.
* Author: !yoast_de_valk
* Author URI: https://yoast.com/about-us/joost-de-valk/
* Version: 1.0.0
* License: GPL2+
*/
/**
* Prevent direct access to files
*
* @since 1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* Nothing fancy here, just some css injection into the WordPress admin head
*/
// remove yoast premium seo nag from admin dashboard
function remove_yoast_license_nag_from_admin_page() {
echo
'<style>
div.error {
display: none;
}
</style>';
}
add_action('admin_head', 'remove_yoast_license_nag_from_admin_page');
4: save the file and its content;
5: zip the directory (folder);
6: install it to WordPress like any other “regular” plugin;
7: Activate the plugin;
8: done.
Hope this helps.
Claude
- This reply was modified 8 years, 8 months ago by Claude Turing. Reason: spelling and clarification
- This reply was modified 8 years, 8 months ago by Claude Turing. Reason: same
- This reply was modified 8 years, 8 months ago by Claude Turing.