Switch language

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




did_action [ WordPress Function ]

did_action ( $tag )
Parameters:
  • (string) $tag The name of the action hook.
Returns:
  • (int) The number of times action hook <tt>$tag</tt> is fired
Defined at:



Retrieve the number of times an action is fired.

Source


<?php
function did_action($tag) {
    global 
$wp_actions;

    if ( ! isset( 
$wp_actions ) || ! isset( $wp_actions[$tag] ) )
        return 
0;

    return 
$wp_actions[$tag];
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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