diff --git a/README.md b/README.md index 998f6fc..2fae820 100644 --- a/README.md +++ b/README.md @@ -61,3 +61,15 @@ make sure they are present. I've puzzled with how to allow this to be altered and this is the best I've been able to come up with. If you have a better idea, let me know in the issues. + +#### Automatic Updates +Install [GitHub Updater](https://github.com/afragen/github-updater) on your site if you want to recieve automatic +updates for this plugin. + +#### Remove Nag +You may notice that I've started adding a little nag to my plugins. It's just a box on some pages that lists my +plugins that you're using with a request do consider making a donation for using them. If you want to disable them +add the following filter to your functions.php file. +``` +add_filter('remove_hube2_nag', '__return_true'); +``` diff --git a/acf-input-counter.php b/acf-input-counter.php index be585f1..704bd5c 100644 --- a/acf-input-counter.php +++ b/acf-input-counter.php @@ -4,7 +4,7 @@ Plugin Name: ACF Input Counter Plugin URI: https://github.com/Hube2/acf-input-counter/ Description: Show character count for limited text and textarea fields - Version: 1.2.0 + Version: 1.3.0 Author: John A. Huebner II Author URI: https://github.com/Hube2/ GitHub Plugin URI: https://github.com/Hube2/acf-input-counter/ @@ -125,6 +125,9 @@ private function check($allow, $exist) { } // end class acf_input_counter if (!function_exists('jh_plugins_list_meta_box')) { + if (apply_filters('remove_hube2_nag', false)) { + return; + } function jh_plugins_list_meta_box() { $plugins = apply_filters('jh_plugins_list', array());