WP_Theme_JSON::do_opt_in_into_settings( array $context )

In this article

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

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.