did_action
The WordPress Core did action function.
Description
did_action();
Usage
if ( !function_exists( 'did_action' ) ) { require_once ABSPATH . '/wp-admin/includes/noop.php'; } // NOTICE! Understand what this does before running. $result = did_action();
Defined (2)
The function is defined in the following location(s).
- /wp-admin/includes/noop.php
- function did_action() {}
- /wp-includes/plugin.php
- function did_action($tag) {
- global $wp_actions;
- if ( ! isset( $wp_actions[ $tag ] ) )
- return 0;
- return $wp_actions[$tag];
- }