Forked from spivurno/gp-word-count-change-labels.php
Created
September 5, 2016 04:31
-
-
Save phillipwilhelm/9721de0c9d32e5737650c6eb6e27fe36 to your computer and use it in GitHub Desktop.
Gravity Perks // GP Word Count // Change Word Count Labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Gravity Perks // GP Word Count // Change Word Count Labels | |
| */ | |
| add_filter( 'gpwc_script_args', 'gpwc_modify_script_args' ); | |
| function gpwc_modify_script_args( $args ) { | |
| $args['defaultLabel'] = '{count} / {limit}'; | |
| $args['counterLabel'] = '{count} / {limit}'; | |
| $args['limitReachedLabel'] = '<span style="font-weight:bold;">{count} / {limit}</span>'; | |
| $args['limitExceededLabel'] = '<span style="font-weight:bold;color:#f00;">{count} / {limit}</span>'; | |
| return $args; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment