Tag Info

New answers tagged

0

I don't think there is a clean way to put arbitrary link into the menu item. At most you could change it with JavaScript after the fact. However there is an edge case that allows you to load plugin file there. Pass as $menu_slug argument a path to a plugin file relative to plugins directory, for example plugin-folder/boo.php. Omit $function argument. This ...


0

Go to your database. Figure out what your prefix is. The default is "wp_" but this solution will change if your prefix is different. Lets use "example_" for this. Go to the your "example_options" table. Find "SOMETHING_user_roles" and change it to "examaple_user_roles"


0

This will properly override the user settings to keep the menu collapsed for all users: /** * Reset user setting to always collapse the admin menu. * * @see set_user_setting() */ function wpdocs_always_collapse_menu() { if ( 'f' != get_user_setting( 'mfold' ) ) { set_user_setting( 'mfold', 'f' ); } } add_action( 'admin_head', ...


0

You can try something like this. function make_menu_unfolded() { print '<script>jQuery(document).ready(function(){jQuery("body").addClass("folded")})</script>'; } add_filter( 'admin_head', 'make_menu_unfolded' ); This is make left menu fold always.


1

The 'View details' link in the installed plugins list table is only shown for plugins that are hosted in the WordPress.org plugin repository. If you take a look at the source for WP_Plugins_List_Table->single_row(), you'll see that the details link is only generated if there's API data present, e.g. the slug is set: // Details link using API info, if ...



Top 50 recent answers are included