Support » Plugin: wpDataTables - Tables & Table Charts » Feature Request – Fetch Data via REST API

  • Resolved Pothi Kalimuthu

    (@pothi)


    Hello,

    I understand that we have wpDataTables javascript object available within the browser. However, it’d be nice to have a way to fetch data using WordPress REST API.

    Thank you,
    Pothi.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Actual this can be done using WP rest routes
    https://wordpress.org/plugins/rest-routes/

    The reason why a traditional WP REST API URL won’t work is due to it returning a non-2-dimensional JSON array.

    But Rest Route returns every 2 dimensional!
    Just make sure NOT to include the “https” when added the URL to WPDatatables.

    • This reply was modified 2 months, 3 weeks ago by  samjco.
    • This reply was modified 2 months, 3 weeks ago by  samjco.

    I wasn’t aware of rest-routes plugin. A project that required rest api (for wpDataTables) is no longer active. So, I need to test it out on a demo environment to keep it handy for future projects. Thanks for the suggestion @samjco .

    Plugin Author wpDataTables

    (@wpdatatables)

    Hello there.

    Thanks for the tip @samjco. @pothi did this help you out?

    Best regads.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.