Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_wp_call_all_hook [ WordPress Function ]

_wp_call_all_hook ( $args )
Access:
  • private
Parameters:
  • (array) $args The collected parameters from the hook that was called.
  • (string) $hook Optional. The hook name that was used to call the 'all' hook.
Uses:
  • $wp_filter
Defined at:



Calls the 'all' hook, which will process the functions hooked into it.

The 'all' hook passes all of the arguments or parameters that were used for the hook, which this function was called for.

This function is used internally for apply_filters(), do_action(), and do_action_ref_array() and is not meant to be used from outside those functions. This function does not check for the existence of the all hook, so it will fail unless the all hook exists prior to this function call.

Source


<?php
function _wp_call_all_hook($args) {
    global 
$wp_filter;

    
reset$wp_filter['all'] );
    do {
        foreach( (array) 
current($wp_filter['all']) as $the_ )
            if ( !
is_null($the_['function']) )
                
call_user_func_array($the_['function'], $args);

    } while ( 
next($wp_filter['all']) !== false );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics