Hooks & Action Filters
Basis of plugin creation – modify how WordPress behaves.
Two types: action hooks and filters
Have to write a callback function and register that function to use in specfici action or filter.
function test(){ //Do something } add_action('hook','test'); add_filter('filter','test');
What is the difference? Action hook is used to add something at a certain point in WordPress execution. JavaScript or CSS.
Used to modify info that already exists. Or make it vanish! Returns something.
WordPress comes with lots of action hooks & filters – but can also create your own.
