Skip to content

Instantly share code, notes, and snippets.

@KnowTheCodePro
Created March 30, 2016 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KnowTheCodePro/76b5e65009ef3d05c76dc8c95e6a938e to your computer and use it in GitHub Desktop.
Save KnowTheCodePro/76b5e65009ef3d05c76dc8c95e6a938e to your computer and use it in GitHub Desktop.
WordPress Docx do_action - Callback Loop
do {
foreach ( (array) current($wp_filter[$tag]) as $the_ ) {
if ( ! is_null( $the_['function'] ) ) {
call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
}
}
} while ( next($wp_filter[$tag]) !== false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment