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)
Return
(bool) True if value is set, false if not.
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |