This file contains 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 | |
// Calculate and display count number with any CPT or PT in admin menu (WordPress) | |
// You can paste this code directly by adding it into your functions.php file or | |
// Add this line of code at the bottom of functions.php file: include( 'notification_bubble.php' ); | |
// Please take a backup of functions.php file first. | |
// last updated on: July/24th/2017 06:30PM (London Time) | |
add_filter( 'add_menu_classes', 'cpt_notification_bubble'); | |
public function cpt_notification_bubble( $menu ) | |
{ |