How to log what functions are running when publishing post?

[ad_1]

Hi! We’ve been dealing with super annoying issue when wrong og:image is displayed on some social media and we need to manually rescrape it. It happens only to some authors. Couple of WP specialists couldn’t figure it out.

Is there a way how to see what functions / plugins are being fired when the article is published? And in what order? I suspect it is some combination of WP Rocket / Yoast / Social media autopublish maybe, but not sure and we need something of how to debug it.

[ad_2]
2 Comments
  1. Perhaps you could give these plugins a try, in case you haven’t already done so:

    [https://wordpress.org/plugins/plugin-detective/])

    [https://wordpress.org/plugins/query-monitor/])

  2. The most thorough way to see every single called function is to use xDebug’s profiler. This requires some knowledge to have set up but will give you extremely granular information. Similarly, xDebug’s debugger can let you step through code line by line to search for anomalies.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer