WP_Customize_Setting::multidimensional_isset() WordPress Method

The multidimensional_isset() method is a custom setting method used in the Wordpress Customizer. It allows you to check if a setting is set, and if so, return the value. This is useful for settings that are arrays or objects.

WP_Customize_Setting::multidimensional_isset( array $root, array $keys ) #

Will attempt to check if a specific value in a multidimensional array is set.


Parameters

$root

(array)(Required)

$keys

(array)(Required)


Top ↑

Return

(bool) True if value is set, false if not.


Top ↑

Source

File: wp-includes/class-wp-customize-setting.php

	final protected function multidimensional_isset( $root, $keys ) {
		$result = $this->multidimensional_get( $root, $keys );
		return isset( $result );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.