Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website
Read more:
Posts Tagged ‘add_action’

November 3rd, 2011

Action, filter and hooks in WordPress

1 Comment, Wordpress, by Joakim Ling.

In WordPress almost all customization are built on hooks. Plugins use them to add scripts and stylesheets to the header and themes use them to add flexibility. Sounds great and it is, but it will take some time to get your head wrapped around it. Hope this helps a bit.

When creating plugins nowadays it’s very common that you want to use AJAX functions to get a better user experience. WordPress has built-in support in admin that can be used on your plugins. However sometimes you need very specific requests to get the result you need. This tutorial will show you the key methods you need to apply to create your own custom AJAX hook.