apply_filters_ref_array [ WordPress Function ]
apply_filters_ref_array ( $tag, $args )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: apply_filters, do_action_ref_array, wp_filter_kses, _get_cron_array, safecss_filter_attr
Execute functions hooked on a specific filter hook, specifying arguments in an array.
Source
<?php
function apply_filters_ref_array($tag, $args) {
global $wp_filter, $merged_filters, $wp_current_filter;
// Do 'all' actions first
if ( isset($wp_filter['all']) ) {
$wp_current_filter[] = $tag;
$all_args = func_get_args();
_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;
// Sort
if ( !isset( $merged_filters[ $tag ] ) ) {
ksort($wp_filter[$tag]);
$merged_filters[ $tag ] = true;
}
reset( $wp_filter[ $tag ] );
do {
foreach( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_['function']) )
$args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
} while ( next($wp_filter[$tag]) !== false );
array_pop( $wp_current_filter );
return $args[0];
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- apply_filters_ref_array | A HitchHackers guide through WordPress
Feb 11, 2011 ... Source code. function apply_filters_ref_array($tag, $args) { global $wp_filter, $ merged_filters, $wp_current_filter; // Do 'all' actions first if ...
hitchhackerguide.com - #12723 (apply_filters_ref_array bug) – WordPress Trac
I believe (unless I am not using it correctly) that there is a bug with the new apply_filters_ref_array() function. Particularly, I am applying two different functions ...
core.trac.wordpress.org - apply_filters_ref_array (WordPress Function) - WPSeek.com
WordPress lookup for apply_filters_ref_array, a WordPress Function. wpseek. com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - apply_filters_ref_array
Function and Method Cross Reference. apply_filters_ref_array(). Defined at: /wp- includes/plugin.php -> line 180. Referenced 38 times: /wp-includes/query.php ...
phpxref.ftwr.co.uk