Tagged Questions
12
votes
2answers
449 views
How to remove a filter that is an anonymous object?
In my functions.php file I would like to remove the below filter, but I'm not sure how to do it since it's in a class. What should remove_filter() look like?
add_filter('comments_array',array( ...
1
vote
2answers
159 views
Applying OO patterns and principles to plugin development
I'm busy writing my first plugin, using PHP 5.3.5. I come from a C# environment, and I must say I'm more than happy with the level of support for good, solid OOP techniques in PHP. However, I'm a ...
7
votes
1answer
908 views
Using classes instead of global functions in functions.php
In many themes I've seen (including TwentyEleven) and in the examples I've found online, when building the functions.php file for a theme all functionality is declared in a global scope. To clarify, ...
5
votes
1answer
2k views
Plugin Form Submission Best Practice
I have done a lot of researching and haven't found quite what I am looking for, so I am hoping that I can be pointed in the right direction.
I am developing an Events plugin that will book a ticket ...