Dev4Press No Script

coreactivity_hide_blog_admin

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

When coreActivity is used in multisite network environment, it adds main Network menu, and it also adds menus for every individual blog. With this filter you can stop adding plugin menu to one or more individual blogs.

Definition
apply_filters( coreactivity_hide_blog_admin, $hide, $blog_id );
Arguments
Name
Type
Description
Default
$hide
boolean
Hide or show the menu in the individual blog admin
false
$blog_id
integer
Current blog ID
Returns
Boolean, return TRUE to hide plugin menu for the specified blog ID.
Rate this reference
0
0
35

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0