Given an array of presets keyed by origin and the value key of the preset, it returns an array where each key is the preset slug and each value the preset value.
Parameters
$preset_per_originarrayrequired- Array of presets keyed by origin.
$value_keystringrequired- The property of the preset that contains its value.
Source
*
* @since 6.1.0
* @since 7.0.0 Added support for `dimensions`.
* @var string[]
*/
const BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS = array(
'__experimentalBorder' => 'border',
'color' => 'color',
'dimensions' => 'dimensions',
'spacing' => 'spacing',
'typography' => 'typography',
);
/**
* Return the input schema at the root and per origin.
*
* @since 6.5.0
*
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.