get_decoded_global_styles_json example


    public function get_items( $request ) {
        $parent = $this->get_parent( $request['parent'] );

        if ( is_wp_error( $parent ) ) {
            return $parent;
        }

        $global_styles_config = $this->get_decoded_global_styles_json( $parent->post_content );

        if ( is_wp_error( $global_styles_config ) ) {
            return $global_styles_config;
        }

        if ( wp_revisions_enabled( $parent ) ) {
            $registered = $this->get_collection_params();
            $query_args = array(
                'post_parent'    => $parent->ID,
                'post_type'      => 'revision',
                'post_status'    => 'inherit',
                
Home | Imprint | This part of the site doesn't use cookies.