Deprecated
This method has been deprecated.
AnsPress_Notification_Hook::ap_menu_items( object $items )
Description #
Filter notification menu title.
Parameters #
- $itemsobject (Required) Menu item object.
Source #
File: addons/free/notification.php
public static function ap_menu_items( $items ) { foreach ( $items as $k => $i ) { if ( isset( $i->post_name ) && 'notifications' === $i->post_name ) { $count = ap_count_unseen_notifications(); if ( $count > 0 ) { $items[ $k ]->title = $i->title . '<i class="noti-count">' . esc_attr( number_format_i18n( $count ) ) . '</i>'; } } } return $items; }
Expand full source code Collapse full source code View on GitHub: addons/free/notification.php:124
Add your comment