Enter your keyword


How to Create and using custom hooks in WordPress

Step 1: Define custom hook

function dswebsolutions_hook() {

Step 2: Tag your custom hook

Place the function call in the desired location within your theme template:


Step 3: Add your function

function hello_wordpress() {  	
echo '<h1>Hello WordPress!</h1>';  
add_action('dswebsolutions_hook', 'hello_wordpress', 7);

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.