Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*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 );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement