Instantly share code, notes, and snippets.

Embed
What would you like to do?
apply_filters - Callback Loop
do {
foreach ( (array) current( $wp_filter[$tag] ) as $the_ ) {
if ( ! is_null( $the_['function'] ) ) {
$args[1] = $value;
$value = call_user_func_array( $the_['function'], array_slice( $args, 1, (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