3.Filters, Actions, Functions
If you want to do any kind of wordpress development other than “point and click” or basics like css etc it is imperative to know how wordpress actions and filters work.
Actions/Filters let extend or change functionality of plugins/themes (or wordpress itself for that matter) without having to touch core files and therefore loosing the ability to ever update anything again or having to re-apply your changes every time a plugin or theme gets updated. (In fact editing core files is just generally a bad idea in any case)
If you do not know about wordpress actions and filters, I would recommend you use your favourite search engine and look for some tutorials (there are plenty of them available) to familiarise yourself with that concept. I promise you, once you understand how these work, a whole new world of wordpress development will open up for you.
A very very basic summary:
- actions “do” things, filters “change” things (though the 2 are somewhat related)
- actions/filters (generally speaking) belong in your theme’s – or better still child theme’s – functions.php
that’s it on that front for the time being….
This section aims to document the most important wppizza functions, actions and filters and will expand over time depending on user requests and general usefulness.
If you are missing anything in particular – or indeed have been customising WPPizza v2x and now wish to transfer your cutomisations to wppizza v3.x but cannot find an answer in the documentation here – contact me using the usual channels.
I will – hopefully – be able to point you in the right direction.
However, please note that some filters and actions have changed completely or have even been removed in favour of other ways to do things (like additional shortcode attributes). Furthermore, a few things have been removed entirely in wppizza v3x (mostly for consistency reasons) in favour of alternatives.
Anyway, get in touch and we’ll see what we can do.
documentor id 5