Hooks: Action and Filter reference
Easy Property Listings has been developed with extensibility and modification in mind using hooks and filters.
With this development requirement the plugin has been filled with filters and hooks that allow you to modify the plugins default behaviour.
Hooks are provided by WordPress and Easy Property Listings to allow your plugin or theme to ‘hook into’ the code; that is, to alter the default behaviour using filters or to insert additional elements into templates using hooks.
This for a WordPress developer is an essential requirement to meet the needs and wants of your real estate customers.
This is even more handy if you are going to develop a number of real estate sites with similar functionality as you can bundle your customisations in a separate plugin to use on all your projects.
While there are a number of filters documented here in the codex in detail, these are only a tiny fraction of the 300+ filters and hooks. For details on what the hooks and filters do, reference the:
A number of the filters are dynamic in nature allowing you to make all kinds of alterations to the code base in Easy Property Listings.
Hooks and Filters
There are two kinds of hooks:
- Actions: Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur.
- Filters: Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen.
We recommend you use download and customise the epl-filters.zip plugin to store your modifications. This allows you to update the EPL plugin and retain your custom changes. You can also re-use your customisations on other websites you build too, saving a heap of time with endless flexibility.
For a comprehensive view of the Easy Property Listings API, see the API Documentation.