Notifications::ap_menu_object( object $items )

Description #

Filter notification menu title.

Parameters #

  • $items
    object (Required) Menu item object.

Source #

File: addons/notifications/notifications.php

	public function ap_menu_object( $items ) {
		foreach ( $items as $k => $i ) {
			if ( isset( $i->object ) && 'notifications' === $i->object ) {
				$items[ $k ]->url  = '#apNotifications';
				$items[ $k ]->type = 'custom';
			}
		}

		return $items;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment