WP_Theme_JSON::maybe_opt_in_into_settings( array $theme_json ): array

In this article

Enables some opt-in settings if theme declared support.

Parameters

$theme_jsonarrayrequired
A theme.json structure to modify.

Return

array The modified theme.json structure.

Source

*
* @param array $schema The base schema.
* @return array The schema at the root and per origin.
*
* Example:
* schema_in_root_and_per_origin(
*   array(
*    'fontFamily' => null,
*    'slug' => null,
*   )
* )
*
* Returns:
* array(
*  'fontFamily' => null,
*  'slug' => null,
*  'default' => array(
*    'fontFamily' => null,
*    'slug' => null,
*  ),

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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