Revision: 44720
Updated Code
at April 16, 2011 05:45 by prwhitehead
Updated Code
/**
* Usage: add_action('custom_hook', 'my_new_function')
* Just place custom_hook(); somewhere in your theme.
**/
function custom_hook(){
do_action('custom_hook');
}
function my_new_function(){
//do something
}
Revision: 44719
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 16, 2011 05:44 by prwhitehead
Initial Code
/**
* Usage: add_action('custom_hook', 'my_new_function')
*
**/
function custom_hook(){
do_action('custom_hook');
}
function my_new_function(){
//do something
}
Initial URL
Initial Description
Create your own wordpress hooks easily and simply. Just rename the function to whatever you like.
Initial Title
Wordpress: create custom wordpress hooks
Initial Tags
php, wordpress
Initial Language
PHP