Create your own wordpress hook

Posted: November 26, 2012 in WordPress

Though we developed many themes and plugins we do not own
a single hook which fills our requirement this is for those
who wish to create their own hook for their requirement.

How it works?

Ideally our lovely WordPress provides a brilliant
method to create hook which is do_action(),
this generally refers to create hook,
this method serves as placeholder where add_action() needs
triger the specific event.

How to create action hook?


function after_title(){
echo “Sandeep Kumar”;
echo “Do your stuff here”;


function ski_hook_after_title(){


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s