Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sorting the registry - apply_filters
// Sort.
if ( !isset( $merged_filters[ $tag ] ) ) {
ksort($wp_filter[$tag]);
$merged_filters[ $tag ] = true;
}
reset( $wp_filter[ $tag ] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment