WordPress at Your Fingertips
filter is not described

woocommerce_navigation_connect_page_options filter-hook . WC 1.0

Filter the options when connecting or registering a page.

Use the js_page option to determine if registering.


add_filter( 'woocommerce_navigation_connect_page_options', 'filter_function_name_4344' );
function filter_function_name_4344( $options ){
	// filter...

	return $options;

Array describing the page.

  • id(string)
    Id to reference the page.

  • title(string|array)
    Page title. Used in menus and breadcrumbs.

  • parent(string|null)
    Parent ID. Null for new top level page.

  • screen_id(string)
    The screen ID that represents the connected page. (Not required for registering).

  • path(string)
    Path for this page. E.g. admin.php?page=wc-settings&tab=checkout

  • capability(string)
    Capability needed to access the page.

  • icon(string)
    Icon. Dashicons helper class, base64-encoded SVG, or 'none'.

  • position(int)
    Menu item position.

  • js_page(true|false)
    If this is a JS-powered page.

Where the hook is called

woocommerce/packages/woocommerce-admin/src/PageController.php 92
$options = apply_filters( 'woocommerce_navigation_connect_page_options', $options );

Where in WP core the hook is used WooCommerce

Usage not found.