How To Remove or Hide Appearance->Background from Admin Menu

Try adding a filter instead. See this answer for more details add_filter(‘admin_menu’, ‘admin_menu_filter’,500); function admin_menu_filter(){ if (! is_admin()){ remove_submenu_page( ‘themes.php’, ‘background.php’); } } Also double check your link to the page from the admin menu. More details in the WordPress Codex To remove a settings page for plugins that use a slug like /wp-admin/options-general.php?page=certain-plugin-settings use … Read more

How to display Custom Taxonomy under Custom Admin Menu?

You haven’t properly registered the taxonomy for your post type. You register your post type like this: register_post_type( ‘custom-post-type-1′, Meaning that your post type is named custom-post-type-1. But when you register the taxonomy, you’re registering it for a post type called my-menu“ register_taxonomy( ‘custom-taxonomy’, ‘my-menu’, You need to register your taxonomy for your post type: … Read more

Plugin sub-menu pages recommended structure and links

You’re very close. When you add your first submenu page you want to duplicate your initial menu page. In your second add_submenu_page you are missing the function callback for that page. Technically this parameter is optional, but it changes your url from /wp-admin/sub-menu-page to /wp-admin/admin.php?page=sub-menu-page. Give this a shot: add_action( ‘admin_menu’, ‘my_menu_pages’ ); function my_menu_pages() … Read more

Dashboard menu missing

The problem was in the names of the meta keys of the wpAA_users table: instead of using wp_capabilities and wp_user_level I should have used the actual prefix, that is wpAA_capabilities and wpAA_user_level. With these modifications I can now access the site as administrator.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)