W3cubDocs

/WordPress

WP_Theme_JSON::do_opt_in_into_settings( array $context )

Enables some settings.

Parameters

$contextarrayrequired
The context to which the settings belong.

Source

 *  'custom' => array(
 *     'fontFamily' => null,
 *     'slug' => null,
 *  ),
 * )
 */
protected static function schema_in_root_and_per_origin( $schema ) {
	$schema_in_root_and_per_origin = $schema;
	foreach ( static::VALID_ORIGINS as $origin ) {
		$schema_in_root_and_per_origin[ $origin ] = $schema;
	}
	return $schema_in_root_and_per_origin;
}

Changelog

Version Description
5.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json/do_opt_in_into_settings