Matina

Just another Mystery Themes Documentation Sites site

How to use hooks in Matina

Matina theme provides various hooks that the devlopers can use to add custom functionality in there theme.
Here are the example how to use hooks

Action Hook:


function custom_function_to_add() {
   //Your code goes here
}
add_action( 'hook_name', 'custom_function_to_add' );

Filter Hook:

function custom_function_to_add() {
   //Your code goes here
}
add_filter( 'filter_name', 'custom_function_to_add' );
For additional information, here is more detailed info WordPress hooks