The best way to get content from other plugins?
-
Hey guys,
My issue is that my plugin uses regex to search through the page content from WP POST and if it finds my plugin’s code, then it will load in the scripts necessary, if it doesn’t find my plugin’s code, then it wont load the scripts. I feel this is the right way to do things because then the user’s aren’t boggled down with unnecessary files.
However, the problem arises with a few plugins ( mainly builders, Divi builder for example ) that do weird stuff to the content, and my plugin isn’t able to detect anything in the regex function. I’m wondering if there is a better way to see if my plugin is within the page, or if I can somehow get the content of the page before certain plugins begin to alter it?
Would I have to dig into to the Divi code and see what they’re doing or is there a better method?
Thanks in advanced!
- The topic ‘The best way to get content from other plugins?’ is closed to new replies.