handle_terms example

$this->handle_featured_media( $request['featured_media']$post_id );
        }

        if ( ! empty( $schema['properties']['format'] ) && ! empty( $request['format'] ) ) {
            set_post_format( $post$request['format'] );
        }

        if ( ! empty( $schema['properties']['template'] ) && isset( $request['template'] ) ) {
            $this->handle_template( $request['template']$post_id, true );
        }

        $terms_update = $this->handle_terms( $post_id$request );

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

        if ( ! empty( $schema['properties']['meta'] ) && isset( $request['meta'] ) ) {
            $meta_update = $this->meta->update_value( $request['meta']$post_id );

            if ( is_wp_error( $meta_update ) ) {
                return $meta_update;
            }
        }
Home | Imprint | This part of the site doesn't use cookies.