/*Helper function*/
if(!function_exists( ‘print_pre’) ){
function print_pre( $variable){
echo ‘<pre>’;
var_dump( $variable );
}
}
function digthis_see_hooked_action($hook = NULL){
if(isset($hook)){
global $wp_filter;
return $wp_filter[$hook] ;
}
}
function digthis_hello_world(){
echo ‘hello’;
};
/*After all plugins and theme files have been loaded for insurance*/
add_action(‘init’, function(){
add_action(‘digthis’, ‘digthis_hello_world’);
remove_action( ‘digthis’, ‘digthis_hello_world’, 10 );
});