Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @melloman, from what I understand it’s eventually going to be merged into core. But it isn’t yet.

    I’m not sure what the current REST controls are like for custom post types, but if they are able to add CPTs of any type via the API then it should be fine.

    We haven’t specifically published any REST API endpoints for ThirstyAffiliates but its something we might consider in the future.

    Cheers,
    Josh

    Thread Starter melloman

    (@melloman)

    Thanks for the reply Josh, I’ll give the WP REST plugin a go in the meantime and see how I go.

    Thread Starter melloman

    (@melloman)

    Also Josh, is it possible to call the quickCreateAffiliateLink function from the frontend or a PHP file?

    I can’t seem to get around the nonce and get “You don’t have appropriate permission to perform this action”

    Ahh possible, but might be a bad idea. That function was designed for admin-side use only so the way you would do it is by adding another hook on wp_nopriv_ajax.

    Hope that helps narrow it down!

    Cheers,
    Josh

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add affiliate links via WordPress REST API?’ is closed to new replies.