set_spacing_sizes example


    public static function get_merged_data( $origin = 'custom' ) {
        if ( is_array( $origin ) ) {
            _deprecated_argument( __FUNCTION__, '5.9.0' );
        }

        $result = new WP_Theme_JSON();
        $result->merge( static::get_core_data() );
        if ( 'default' === $origin ) {
            $result->set_spacing_sizes();
            return $result;
        }

        $result->merge( static::get_block_data() );
        if ( 'blocks' === $origin ) {
            return $result;
        }

        $result->merge( static::get_theme_data() );
        if ( 'theme' === $origin ) {
            $result->set_spacing_sizes();
            
Home | Imprint | This part of the site doesn't use cookies.