Disabling on custom admin pages dont work
-
Hi, i created a custom menu item in the backend a page with the following and tried to deactivate all plugins for the admin page with the Backend URLs Setting – but it does not work. Any idea why? my url is
mydomain.com/wp-admin/admin.php?page=welcome-subenin-yoneticisi
*admin.php?page=welcome-subenin-yoneticisi*
// Create a welcome menu for redirection after login to avoid problems and missing mobile menu on mobile view add_menu_page( __( 'Welcome', 'woocommerce' ).' ID '.$current_user->ID, __( 'Welcome', 'woocommerce' ).' ID '.$current_user->ID, 'manage_woocommerce', 'welcome-subenin-yoneticisi', 'newrole_test', 'dashicons-smiley' ); // Page content for Welcome page function newrole_test() { global $current_user; $author = wp_get_current_user(); // Define child theme path define( 'CHILD_PATH', get_stylesheet_directory() . '' ); include_once( CHILD_PATH . '/include-parts-from-functions-php/test-welcome-page.php'); }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Disabling on custom admin pages dont work’ is closed to new replies.