woocommerce_account_menu_item_classes

woocommerce_account_menu_item_classes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_account_menu_item_classes') is found 1 times:

  • /includes/wc-account-functions.php line 177
    	if ( wc_is_current_account_menu_item( $endpoint ) ) {
    		$classes[] = 'is-active';
    	}
    
    	$classes = apply_filters( 'woocommerce_account_menu_item_classes', $classes, $endpoint );
    
    	return implode( ' ', array_map( 'sanitize_html_class', $classes ) );
    }
    
    /**
     * Get account endpoint URL.