-
-
Save WillBrubaker/7edd45085b7666a13f53 to your computer and use it in GitHub Desktop.
Nice share thanks!
Thank you very much! Great job, thanks for sharing.
works perfectly thumbs up man
great and smart solution
I did something similar! Note: this does cause some issues when functions rely on these submenus existing. For example, when I updated woocommerce - there was a request to update the database as well. Updating this database would not work until I figured out I needed to enable the wc-settings submenu again.
great task...................
could you check the link http://prntscr.com/mmmp9w ..? I cann't remove "pdf invoice" sub menu. i've added code below. please help me
`function wooninja_remove_items() {
$remove = array( 'wc-settings', 'wc-status', 'wc-addons','wwpp-wholesale-roles-page','shop_coupon','wpo_wcpdf_options_page', );
foreach ( $remove as $submenu_slug ) {
if ( ! current_user_can( 'update_core' ) ) {
remove_submenu_page( 'woocommerce', $submenu_slug );
}
}
}
add_action( 'admin_menu', 'wooninja_remove_items', 99, 0 );`
good and perfect!
really helpful!
perfect thank you !