did_action( string $tag )
Retrieve the number of times an action is fired.
Parameters
- $tag
-
(Required) The name of the action hook.
Return
(int) The number of times action hook $tag is fired.
Source
File: wp-includes/plugin.php
function did_action($tag) {
global $wp_actions;
if ( ! isset( $wp_actions[ $tag ] ) )
return 0;
return $wp_actions[$tag];
}
Related
Used By
Used By | Description |
---|---|
wp-includes/general-template.php: wp_admin_css() |
Enqueues or directly prints a stylesheet link to the specified CSS file. |
wp-includes/script-loader.php: script_concat_settings() |
Determine the concatenation and compression settings for scripts and styles. |
wp-includes/script-loader.php: wp_print_head_scripts() |
Prints the script queue in the HTML head on the front end. |
wp-includes/script-loader.php: wp_default_scripts() |
Register all ClassicPress scripts. |
wp-includes/script-loader.php: print_head_scripts() |
Prints the script queue in the HTML head on admin pages. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::call_widget_update() |
Finds and invokes the widget update and control callbacks. |
wp-includes/media.php: wp_enqueue_media() |
Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs. |
wp-includes/media.php: wp_audio_shortcode() |
Builds the Audio shortcode output. |
wp-includes/media.php: wp_video_shortcode() |
Builds the Video shortcode output. |
wp-includes/embed.php: wp_oembed_add_provider() |
Adds a URL format and oEmbed provider URL pair. |
wp-includes/embed.php: wp_oembed_remove_provider() |
Removes an oEmbed provider. |
wp-includes/class-wp-site.php: WP_Site::__get() |
Getter. |
wp-includes/class-wp-site.php: WP_Site::__isset() |
Isset-er. |
wp-includes/ms-blogs.php: wp_switch_roles_and_user() |
Switches the initialized roles and current user capabilities to another site. |
wp-includes/wp-db.php: wpdb::select() |
Selects a database using the current database connection. |
wp-includes/wp-db.php: wpdb::check_connection() |
Checks that the connection to the database is still up. If not, try to reconnect. |
wp-includes/theme.php: _wp_customize_publish_changeset() |
Publishes a snapshot’s changes. |
wp-includes/theme.php: _remove_theme_support() |
Do not use. Removes theme support internally, ignorant of the blacklist. |
wp-includes/theme.php: add_theme_support() |
Registers theme support for a given feature. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::_publish_changeset_values() |
Publish changeset values. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::import_theme_starter_content() |
Import theme starter content into the customized state. |
wp-includes/class-wp-rewrite.php: WP_Rewrite::wp_rewrite_rules() |
Retrieves the rewrite rules. |
wp-includes/class-wp-rewrite.php: WP_Rewrite::flush_rules() |
Removes rewrite rules and then recreate rewrite rules. |
wp-includes/class-wp-editor.php: _WP_Editors::enqueue_default_editor() |
Enqueue all editor scripts. |
wp-includes/load.php: wp_load_translations_early() |
Attempt an early load of translations. |
wp-includes/taxonomy.php: create_initial_taxonomies() |
Creates the initial taxonomies. |
wp-includes/widgets.php: wp_register_widget_control() |
Registers widget control callback for customizing options. |
wp-includes/widgets.php: _register_widget_form_callback() |
Registers the form callback for a widget. |
wp-includes/widgets.php: wp_register_sidebar_widget() |
Register an instance of a widget. |
wp-includes/functions.php: wp_allowed_protocols() |
Retrieve a list of protocols to allow in HTML attributes. |
wp-includes/functions.php: _default_wp_die_handler() |
Kills ClassicPress execution and display HTML message with error message. |
wp-admin/includes/misc.php: WP_Privacy_Policy_Content::text_change_check() |
Quick check if any privacy info has changed. |
wp-admin/includes/plugin.php: wp_add_privacy_policy_content() |
Helper function for adding content to the Privacy Policy Guide. |
Changelog
Version | Description |
---|---|
WP-2.1.0 | Introduced. |