no themes or editor under appearance menu

I would ensure that your user is an ‘admin’ type. Then I would reinstall WP core files (via the update, if that is available; otherwise you will have to do a selective file transfer so as to not to overwrite your settings). I would also rename the ‘plugins’ folder to ‘xxplugins’ temporarily, to ensure that … Read more

admin menu: use default “general” page for theme settings using add_menu_page and add_submenu_page

You need to create a submenu page with the same slug as the menu page. E.g. $menu_slug = “my_menu_slug”; $desired_capability = “manage_options”; //Or whatever you need $menu_page_callback = “menu_page_callback_function”; add_menu_page( “Page Title”, “Menu Title”, $desired_capability, $menu_slug, $menu_page_callback ); add_submenu_page( $menu_slug, “Submenu Page Title”, “Submenu Menu Title”, $desired_capability, $menu_slug, $menu_page_callback ); //Note, the 5th and 6th … Read more

Insert link in sub menu – Admin panel

You can try this. add_action( ‘admin_menu’, ‘register_my_custom_menu_page’ ); function register_my_custom_menu_page() { add_menu_page( ‘My Custom Page’, ‘My Custom Page’, ‘manage_options’, ‘my-top-level-slug’, ”, ‘dashicons-menu’, 6 ); add_submenu_page( ‘my-top-level-slug’, ‘My Custom Page’, ‘My Custom Page’, ‘manage_options’, ‘my-top-level-slug’, ‘custom_subpage_first’); add_submenu_page( ‘my-top-level-slug’, ‘My Custom Submenu Page 1’, ‘My Custom Submenu Page’,’manage_options’, ‘my-secondary-slug’, ‘custom_subpage_second’); } function custom_subpage_first() { ?> <div class=”wrap”> … Read more

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