Tab order of post admin page

Form fields have something called a tab index. So when you press the tab key it will know where to go next. However when a page has multiple forms the indexes can get mixed up, unless they are clearly specified in each field. Some wp form plugins give you the ability to add the form … Read more

Restricted access for other user roles

Actually its very simple ex: // only administrator if ( ! current_user_can(‘manage_options’) ) { add_action( ‘admin_menu’, ‘remove_woocommerce_menu_pages’, 999 ); function remove_woocommerce_menu_pages() { remove_submenu_page(‘woocommerce’, ‘woocommerce_settings’); } }

How can I place a page link to the sidebar admin bar?

I have added custom menu link by following. Hope it will be helpful. add_action( ‘admin_menu’ , ‘custom_admin_menu_new_items’ ); function custom_admin_menu_new_items() { global $menu; add_menu_page( ‘My Page’, ‘My Page’, ‘manage_options’, ‘my-page’, ”,”, 6 ); foreach($menu as $mIndex => $mData) { if($mData[2] == ‘my-page’) { $menu[$mIndex][2] = ‘http://mypage.com/mypage’; break; } } } Action hook admin_menu is used. … Read more

Removing admin menu items with white spaces

There are more reliable functions to remove menus and submenus in WP admin area. Those functions are remove_menu_page and remove_submenu_page. I don’t know if the menus you want to remove are top level menus or submenus neither the slug of the menus (needed for these functions), so I can not give you the exact code … Read more

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