Archive

Posts Tagged ‘hooks’

Aiding WordPress devs – filter reference

September 3rd, 2008 1 comment

WordPress development, on a whole, is pretty simple. As someone who has come from a background working with IPB and a little bit of phpBB I was quite amazed at how unusual it is to edit the “core” WordPress files – those which are outside the wp-content folder and are distributed each release.

Instead WordPress relies on hooks that are either filters (which change something) or actions (which do something). These are quite simply littered throughout the code and any plugin can jump on these to do whatever is needed by the developer. However, the problem I’ve found is a lack of trying to find the right hook for the job. PHPXref, which is excellent for finding functions and variables doesn’t have the ability to find a hook which is usually in the format of:
do_action('name', $vars); or apply_filters('loginout', $output);

Read more…

Categories: Featured, Geeky Tags: , ,

Canonical URL by SEO No Duplicate WordPress Plugin