Advertisement
digamber

Correct Way to Hook Into Action Hooks or Filter

Nov 29th, 2015
892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. /* correct way to add to an action hook or filter*/
  2. function digthis_hello_world(){
  3. echo 'hello';
  4. };
  5. add_action('digthis', 'digthis_hello_world');
  6. do_action('digthis');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement