wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
apply_filters_ref_array › WordPress Function
Seit3.0.0
Veraltetn/v
› apply_filters_ref_array ( $tag, $args )
Parameter: (2) |
|
Siehe: | |
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
Ähnliche Funktionen: apply_filters, apply_filters_deprecated, do_action_ref_array, wp_is_numeric_array, wp_filter_kses
Quellcode
function apply_filters_ref_array( $tag, $args ) { global $wp_filter, $wp_current_filter; // Do 'all' actions first. if ( isset( $wp_filter['all'] ) ) { $wp_current_filter[] = $tag; $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection _wp_call_all_hook( $all_args ); } if ( ! isset( $wp_filter[ $tag ] ) ) { if ( isset( $wp_filter['all'] ) ) { array_pop( $wp_current_filter ); } return $args[0]; } if ( ! isset( $wp_filter['all'] ) ) { $wp_current_filter[] = $tag; } $filtered = $wp_filter[ $tag ]->apply_filters( $args[0], $args ); array_pop( $wp_current_filter ); return $filtered; }