When I was working on schema data, I got an issue where a shortcode was executed within that data, which was not desired. So I looked for a way to disable this particular shortcode temporarily. I didn’t want to disable all shortcodes, which would have been easier by just removing the do_shortcode function within my code, because I was dependent on other shortcodes.
[…]
https://epiph.yt/en/blog/2026/temporarily-disable-a-shortcode-in-wordpress/ #Shortcode #WordPress