• Hello, I found this plugin very useful.

    I would like to know if it’s possible to obtain some data gathered by Query monitor programmatically. I would like to print some data (like Timings data) in a dashboard outside WordPress. Is there a function I can call from a script?

Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Query Monitor doesn’t store any data persistently, so connecting it to an external services isn’t possible yet without pulling the data straight out of the current browser instance.

    There is a work-in-progress branch on GitHub where I’m working on converting QM to a React app, and this exposes the whole data set as a JavaScript object on the page: https://github.com/johnbillion/query-monitor/pull/483

    If you want to give it a try, check out the branch, run npm install && npm run build, and then the qm_data variable on the page contains QM’s data. That’s about the best I can offer you at the moment!

Viewing 1 replies (of 1 total)
  • The topic ‘Get data programmatically’ is closed to new replies.