add some custom menu to array
-
Hi,
i want to add some custom menu to array:$pages[‘bookings’] = array (‘url’ => ‘admin.php?page=rtb-bookings’);
thats working and showing this menu in all sites.
the question is how to add this menu only if plugin is activated in some of the blogs? if the plugin is not activated, then this menu should not be shown under the blogs that the plugin is not activated.
i tried to make this work like:
if(is_plugin_active('restaurant-reservations/restaurant-reservations.php')) { $pages['bookings'] = array ('url' => 'admin.php?page=rtb-bookings'); }
but the problem is, if i in some blog that the plugin does not activate, this will not show the menu item in all blogs And vice versa.
can you help me to make this work?
Thanks
https://www.ads-software.com/plugins/multisite-admin-bar-switcher/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘add some custom menu to array’ is closed to new replies.