Support » Plugin: YITH WooCommerce Wishlist » Cannot remove ‘How to install premium version’ submenu

  • Resolved Jason Wong

    (@eljkmw)


    I tried to remove the ‘How to install premium version’ submenu using remove_submenu_page( 'yit_plugin_panel', 'how_to' ); but it failed to work.

    Please advise. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Eventually, I’ve to insert a custom CSS into the admin_head to remove the submenu, as shown in the snippet below.

    // Remove "How to install premium version" submenu
    function yith_remove_premium_ver_submenu() {
    	echo '<style type="text/css">
    	  .toplevel_page_yit_plugin_panel .wp-submenu li:nth-child(4) { display: none; }
    	</style>';
    }
    add_action( 'admin_head', 'yith_remove_premium_ver_submenu' );

    Sigh! (><)”

    Eventually, I’ve to insert a custom CSS into the admin_head to remove the submenu, as shown in the snippet below.

    // Remove "How to install premium version" submenu
    function yith_remove_premium_ver_submenu() {
    	echo '<style type="text/css">
    	  .toplevel_page_yit_plugin_panel .wp-submenu li:nth-child(4) { display: none; }
    	</style>';
    }
    add_action( 'admin_head', 'yith_remove_premium_ver_submenu' );

    Sigh! (><)”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot remove ‘How to install premium version’ submenu’ is closed to new replies.