WordPress Docx do_action - Callback Loop Refactored
$priority_level_callbacks = (array) current( $wp_filter[$tag] ); | |
do { | |
foreach ( (array) $priority_level_callbacks as $the_ ) { | |
if ( ! is_null( $the_['function'] ) ) { | |
call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) ); | |
} | |
} | |
$priority_level_callbacks = (array) next( $wp_filter[$tag] ); | |
} while ( $priority_level_callbacks !== false ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment