WP_Theme_JSON::do_opt_in_into_settings() – Enables some settings.

You appear to be a bot. Output may be restricted

Description

Enables some settings.

Usage

WP_Theme_JSON::do_opt_in_into_settings( $context );

Parameters

$context
( array ) required – The context to which the settings belong.

Returns

void

Source

File name: wordpress/wp-includes/class-wp-theme-json.php


Lines:

1 to 12 of 12
  protected static function do_opt_in_into_settings( &$context ) {
    foreach ( static::APPEARANCE_TOOLS_OPT_INS as $path ) {
      // Use "unset prop" as a marker instead of "null" because
      // "null" can be a valid value for some props (e.g. blockGap).
      if ( 'unset prop' === _wp_array_get( $context, $path, 'unset prop' ) ) {
        _wp_array_set( $context, $path, true );
      }
    }

    unset( $context['appearanceTools'] );
  }
 

 View on GitHub View on Trac