WordPress at Your Fingertips
function is not described

WC_Admin_Menus::update_menu_highlight() public WC 1.0

Highlight the My Subscriptions menu item when on that page

{} It's a method of the class: WC_Admin_Menus{}

No Hooks.

Return

String.

Usage

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->update_menu_highlight( $submenu_file, $parent_file );
$submenu_file(string) (required)
The submenu file.
$parent_file(string) (required)
currently opened page.

Code of WC_Admin_Menus::update_menu_highlight() WC 5.9.0

public function update_menu_highlight( $submenu_file, $parent_file ) {
	if ( 'woocommerce' === $parent_file && isset( $_GET['section'] ) && 'helper' === $_GET['section'] ) {
		$submenu_file = 'wc-addons&section=helper';
	}
	return $submenu_file;
}