• Error:
    403 GET /wp-json/wp/v2/types/dedo_download?context=edit&_locale=user HTTP/1.1

    Solution:
    /**
    * Add REST API support to an already registered post type.
    */
    add_filter( ‘register_post_type_args’, ‘my_post_type_args’, 10, 2 );

    function my_post_type_args( $args, $post_type ) {

    if ( ‘dedo_download’ === $post_type ) {
    $args[‘show_in_rest’] = true;

    }

    return $args;
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fixed issue with error 403’ is closed to new replies.