Support » Plugin: WP REST API Controller » Fail to recognize acf/v3 cpt

  • Resolved mulli.bahr

    (@mullibahr)


    Fail to recognize existing acf/v3 custom post types.
    In the code you have:
    $this->rest_endpoint_base = esc_url( site_url( '/wp-json/wp/v2/' ) );

    Why is that? What am I missing?
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @mullibahr,

    I am not sure what your question is. esc_url( site_url( '/wp-json/wp/v2/' ) ); will evaluate to something like https://wordpress.org/wp-json/wp/v2/ which is the REST API base endpoint for any API call.

    Do you have a CPT that is not showing up in the REST API?

    Let me know.

    Thanks,
    Kevin.

Viewing 1 replies (of 1 total)
  • The topic ‘Fail to recognize acf/v3 cpt’ is closed to new replies.