REST API cURL Post Request via Construct 3 AJAX Module

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • Hello Uriel1339,

    Thanks for sharing this tutorial. Could you answer a couple of questions for me please?

    I am trying to pass a Score to the WPDB, this used to be a fairly simple process using the $_GET in PHP, however, things seem to have changed a bit in WP since I last did this :)

    Q1 - Did you have to register a REST API endpoint?

    Q2 - Or did you just manage with allowing CORS?

    Thanks in advance

    • I haven't looked in here forever. Apologies for never replying! I looked at my code and... I'm not quite sure.

      The REST API endpoint was already existing within WooCommerce and is accessible via key & code. If that wasn't in the URL it would just kickback as authentication failed.

      And I don't know what CORS is.