Skip to content

Commit

Permalink
added remove nag filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Hube2 committed Oct 9, 2016
1 parent a437fd5 commit 2c8d08d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```
5 changes: 4 additions & 1 deletion acf-input-counter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 2c8d08d

Please sign in to comment.