WP_Customize_Nav_Menus::filter_dynamic_setting_args

Advertisement

Summery Summery

Filters a dynamic setting’s constructor args.

Syntax Syntax

WP_Customize_Nav_Menus::filter_dynamic_setting_args( false|array $setting_args, string $setting_id )

Description Description

For a dynamic setting to be registered, this filter must be employed to override the default false value with an array of args to pass to the WP_Customize_Setting constructor.

Parameters Parameters

$setting_args

(Required) The arguments to the WP_Customize_Setting constructor.

$setting_id

(Required) ID for dynamic setting, usually coming from $_POST['customized'].

Return Return

(array|false)

Source Source

File: wp-includes/class-wp-customize-nav-menus.php

				'pendingTitleTpl'        => __( '%s (Pending)' ),
				/* translators: %d: Number of menu items found. */
				'itemsFound'             => __( 'Number of items found: %d' ),
				/* translators: %d: Number of additional menu items found. */
				'itemsFoundMore'         => __( 'Additional items found: %d' ),
				'itemsLoadingMore'       => __( 'Loading more results... please wait.' ),
				'reorderModeOn'          => __( 'Reorder mode enabled' ),
				'reorderModeOff'         => __( 'Reorder mode closed' ),
				'reorderLabelOn'         => esc_attr__( 'Reorder menu items' ),
				'reorderLabelOff'        => esc_attr__( 'Close reorder mode' ),
			),
			'settingTransport'         => 'postMessage',
			'phpIntMax'                => PHP_INT_MAX,
			'defaultSettingValues'     => array(

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply