Created
April 9, 2025 12:30
-
-
Save wp-seopress/3bf2d088ddbc7a818797df837b625a15 to your computer and use it in GitHub Desktop.
Filter the admin bar counter
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
function sp_adminbar_counter($counter, $total) { | |
// Default counter | |
$counter = '<div class="wp-core-ui wp-ui-notification seopress-menu-notification-counter">' . $total . '</div>'; | |
return $counter; | |
} | |
add_filter('seopress_adminbar_counter', 'sp_adminbar_counter', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment