2

If this is what you want: ... you can do it like so: Step #1: Add the custom menu item (Retailer Sendout). function add_retailer_sendout_admin_menu() { $slug = 'edit.php?post_type=page&template=page-retailer-sendout.php'; add_menu_page( 'Retailer Sendout', 'Retailer Sendout', 'edit_pages', $slug, '', 'dashicons-admin-page', 19 ); } ...


1

The following snippet removes the registered site health dashboard widget from the dashboard. Add the code to your plugin or functions.php file: add_action('wp_dashboard_setup', 'remove_site_health_dashboard_widget'); function remove_site_health_dashboard_widget() { remove_meta_box('dashboard_site_health', 'dashboard', 'normal'); }


1

You should check under your plugin folder, unfortunately you have create again others child folder.


1

You will need to install 'classic editor' plugin. WordPress has updated their default editor as of version 5.


1

function shapeSpace_remove_toolbar_menu() { global $wp_admin_bar; // remove menu for editor and author if( current_user_can( 'editor' ) || current_user_can( 'author' ) ){ $wp_admin_bar->remove_menu('site-name'); } } add_action('wp_before_admin_bar_render', 'shapeSpace_remove_toolbar_menu', 999); All Roles: ...


1

//is there a $param here? None, the hook you're using does not pass any parameters to the callback. But you can instead use the admin_enqueue_scripts hook which passes the hook name for the current menu page — the hook name is also saved in the global $hook_suffix variable. You can then use get_plugin_page_hookname() to get the hook name for a ...


Only top voted, non community-wiki answers of a minimum length are eligible