Deprecated
This method has been deprecated.
Notifications::ap_menu_items( object $items )
Description #
Filter notification menu title.
Parameters #
- $itemsobject (Required) Menu item object.
Source #
File: addons/notifications/notifications.php
public 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/notifications/notifications.php:135
Add your comment