remove_action or remove_filter with external classes?

Posted by Prem Tiwari | Updated on

The best thing to do here is to use a static class. The following code should be instructional:

If you run this code from a plugin you should notice that the method of the StaticClass as well as the function will removed from wp_footer.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers