Changeset 53804 for trunk/tests/phpunit/tests/hooks/doAllHook.php
- Timestamp:
- 07/31/2022 03:03:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/doAllHook.php
r52389 r53804 13 13 $callback = array( $a, 'action' ); 14 14 $hook = new WP_Hook(); 15 $ tag= 'all';15 $hook_name = 'all'; 16 16 $priority = 1; 17 17 $accepted_args = 2; 18 18 $arg = 'all_arg'; 19 19 20 $hook->add_filter( $ tag, $callback, $priority, $accepted_args );20 $hook->add_filter( $hook_name, $callback, $priority, $accepted_args ); 21 21 $args = array( $arg ); 22 22 $hook->do_all_hook( $args );
Note: See TracChangeset
for help on using the changeset viewer.