返回介绍

do_action()

发布于 2017-09-10 22:15:04 字数 31230 浏览 1143 评论 0 收藏 0

do_action( string $tag,  $arg = '' )

Execute functions hooked on a specific action hook.


description

This function invokes all functions attached to action hook $tag. It is possible to create new action hooks by simply calling this function, specifying the name of the new hook using the $tag parameter.

You can pass extra arguments to the hooks, much like you can with apply_filters().


参数

$tag

(string) (Required) The name of the action to be executed.

$arg,...

(mixed) (Optional) Additional arguments which are passed on to the functions hooked to the action. Default empty.


源代码

File: wp-includes/plugin.php

function do_action($tag, $arg = '') {
	global $wp_filter, $wp_actions, $wp_current_filter;

	if ( ! isset($wp_actions[$tag]) )
		$wp_actions[$tag] = 1;
	else
		++$wp_actions[$tag];

	// 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;
	}

	if ( !isset($wp_filter['all']) )
		$wp_current_filter[] = $tag;

	$args = array();
	if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
		$args[] =& $arg[0];
	else
		$args[] = $arg;
	for ( $a = 2, $num = func_num_args(); $a < $num; $a++ )
		$args[] = func_get_arg($a);

	$wp_filter[ $tag ]->do_action( $args );

	array_pop($wp_current_filter);
}

更新日志

Versiondescription
1.2.0Introduced.

相关函数

Uses

  • wp-includes/plugin.php: _wp_call_all_hook()

Used By

  • wp-includes/class-wp-editor.php: _WP_Editors::print_default_editor_scripts()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::_publish_changeset_values()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::save_changeset_post()
  • wp-includes/theme.php: _wp_customize_publish_changeset()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::create_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::update_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::create_item()
  • wp-includes/class-wp-locale-switcher.php: WP_Locale_Switcher::change_locale()
  • wp-includes/class-wp-locale-switcher.php: WP_Locale_Switcher::switch_to_locale()
  • wp-includes/class-wp-locale-switcher.php: WP_Locale_Switcher::restore_previous_locale()
  • wp-includes/comment.php: wp_check_comment_flood()
  • wp-includes/class-wp-term-query.php: WP_Term_Query::get_terms()
  • wp-includes/class-wp-term-query.php: WP_Term_Query::parse_query()
  • wp-includes/ms-blogs.php: clean_network_cache()
  • wp-includes/functions.php: _deprecated_hook()
  • wp-includes/ms-load.php: ms_load_current_site_and_network()
  • wp-includes/rest-api.php: rest_get_server()
  • wp-includes/class-wp-metadata-lazyloader.php: WP_Metadata_Lazyloader::queue_objects()
  • wp-includes/taxonomy.php: unregister_taxonomy()
  • wp-includes/post.php: unregister_post_type()
  • wp-includes/customize/class-wp-customize-selective-refresh.php: WP_Customize_Selective_Refresh::handle_render_partials_request()
  • wp-includes/embed.php: enqueue_embed_scripts()
  • wp-includes/user.php: get_password_reset_key()
  • wp-includes/comment.php: wp_handle_comment_submission()
  • wp-includes/option.php: update_network_option()
  • wp-includes/option.php: add_network_option()
  • wp-includes/option.php: delete_network_option()
  • wp-admin/includes/ajax-actions.php: wp_ajax_delete_inactive_widgets()
  • wp-includes/functions.php: _deprecated_constructor()
  • wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::column_default()
  • wp-admin/includes/class-wp-links-list-table.php: WP_Links_List_Table::column_default()
  • wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::column_default()
  • wp-admin/includes/ajax-actions.php: wp_ajax_crop_image()
  • wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::column_default()
  • wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::column_plugins()
  • wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_default()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::set_post_value()
  • wp-admin/includes/class-wp-press-this.php: WP_Press_This::html()
  • wp-includes/class-wp-customize-panel.php: WP_Customize_Panel::maybe_render()
  • wp-login.php: login_footer()
  • wp-login.php: retrieve_password()
  • wp-login.php: login_header()
  • wp-signup.php: show_user_form()
  • wp-signup.php: signup_another_blog()
  • wp-signup.php: confirm_another_blog_signup()
  • wp-signup.php: signup_user()
  • wp-signup.php: confirm_user_signup()
  • wp-signup.php: signup_blog()
  • wp-signup.php: confirm_blog_signup()
  • wp-signup.php: do_signup_header()
  • wp-signup.php: show_blog_form()
  • wp-admin/install.php: display_setup_form()
  • wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::update()
  • wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::run()
  • wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::bulk_upgrade()
  • wp-admin/includes/class-core-upgrader.php: Core_Upgrader::upgrade()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::bulk_upgrade()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::bulk_upgrade()
  • wp-admin/includes/class-wp-upgrader.php: WP_Upgrader::run()
  • wp-admin/includes/class-wp-screen.php: WP_Screen::set_current_screen()
  • wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::single_row()
  • wp-admin/includes/export.php: export_wp()
  • wp-includes/capabilities.php: grant_super_admin()
  • wp-includes/capabilities.php: revoke_super_admin()
  • wp-admin/includes/ms.php: wpmu_delete_user()
  • wp-admin/includes/ms.php: update_user_status()
  • wp-admin/includes/ms.php: wpmu_delete_blog()
  • wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::single_row()
  • wp-admin/includes/schema.php: populate_options()
  • wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::display()
  • wp-admin/includes/update.php: wp_plugin_update_row()
  • wp-admin/includes/update.php: wp_theme_update_row()
  • wp-admin/includes/dashboard.php: wp_network_dashboard_right_now()
  • wp-admin/includes/dashboard.php: wp_dashboard_right_now()
  • wp-admin/includes/dashboard.php: wp_dashboard_setup()
  • wp-admin/includes/upgrade.php: wp_upgrade()
  • wp-admin/includes/upgrade.php: wp_install()
  • wp-admin/includes/plugin.php: uninstall_plugin()
  • wp-admin/includes/plugin.php: activate_plugin()
  • wp-admin/includes/plugin.php: deactivate_plugins()
  • wp-admin/includes/plugin.php: delete_plugins()
  • wp-admin/includes/user.php: edit_user()
  • wp-admin/includes/user.php: wp_delete_user()
  • wp-admin/includes/class-wp-plugin-install-list-table.php: WP_Plugin_Install_List_Table::display_tablenav()
  • wp-admin/includes/template.php: _wp_admin_html_begin()
  • wp-admin/includes/template.php: iframe_header()
  • wp-admin/includes/template.php: iframe_footer()
  • wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::extra_tablenav()
  • wp-admin/includes/media.php: edit_form_image_editor()
  • wp-admin/includes/media.php: media_upload_form()
  • wp-admin/includes/media.php: wp_iframe()
  • wp-admin/includes/post.php: _admin_notice_post_locked()
  • wp-admin/includes/post.php: wp_create_post_autosave()
  • wp-admin/includes/ajax-actions.php: wp_ajax_heartbeat()
  • wp-admin/includes/ajax-actions.php: wp_ajax_save_widget()
  • wp-admin/includes/update-core.php: update_core()
  • wp-admin/includes/ajax-actions.php: wp_ajax_nopriv_heartbeat()
  • wp-admin/includes/meta-boxes.php: post_comment_status_meta_box()
  • wp-admin/includes/meta-boxes.php: page_attributes_meta_box()
  • wp-admin/includes/meta-boxes.php: link_submit_meta_box()
  • wp-admin/includes/bookmark.php: wp_insert_link()
  • wp-admin/includes/meta-boxes.php: post_submit_meta_box()
  • wp-admin/includes/meta-boxes.php: attachment_submit_meta_box()
  • wp-admin/includes/bookmark.php: wp_delete_link()
  • wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::extra_tablenav()
  • wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::column_default()
  • wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::extra_tablenav()
  • wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::inline_edit()
  • wp-admin/includes/nav-menu.php: wp_nav_menu_update_menu_items()
  • wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::inline_edit()
  • wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::extra_tablenav()
  • wp-admin/custom-header.php: Custom_Image_Header::step_1()
  • wp-admin/custom-header.php: Custom_Image_Header::step_2()
  • wp-admin/includes/ms.php: confirm_delete_users()
  • wp-admin/custom-background.php: Custom_Background::handle_upload()
  • wp-activate.php: do_activate_header()
  • wp-includes/class-wp-user.php: WP_User::add_role()
  • wp-includes/class-wp-user.php: WP_User::remove_role()
  • wp-includes/class-wp-user.php: WP_User::set_role()
  • wp-includes/class-wp-roles.php: WP_Roles::_init()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_init()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::start_previewing_theme()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::stop_previewing_theme()
  • wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::wp_loaded()
  • wp-includes/theme.php: check_theme_switched()
  • wp-includes/theme.php: switch_theme()
  • wp-includes/l10n.php: load_textdomain()
  • wp-includes/l10n.php: unload_textdomain()
  • wp-includes/pluggable.php: wp_new_user_notification()
  • wp-includes/pluggable.php: wp_verify_nonce()
  • wp-includes/pluggable.php: wp_set_auth_cookie()
  • wp-includes/pluggable.php: wp_clear_auth_cookie()
  • wp-includes/pluggable.php: auth_redirect()
  • wp-includes/pluggable.php: check_admin_referer()
  • wp-includes/pluggable.php: check_ajax_referer()
  • wp-includes/pluggable.php: wp_authenticate()
  • wp-includes/pluggable.php: wp_logout()
  • wp-includes/pluggable.php: wp_validate_auth_cookie()
  • wp-includes/pluggable.php: wp_set_current_user()
  • wp-includes/pluggable.php: wp_mail()
  • wp-includes/general-template.php: wp_head()
  • wp-includes/general-template.php: wp_footer()
  • wp-includes/general-template.php: wp_meta()
  • wp-includes/general-template.php: get_header()
  • wp-includes/general-template.php: get_footer()
  • wp-includes/general-template.php: get_sidebar()
  • wp-includes/general-template.php: get_template_part()
  • wp-includes/general-template.php: get_search_form()
  • wp-includes/deprecated.php: delete_usermeta()
  • wp-includes/deprecated.php: update_usermeta()
  • wp-includes/class-wp-query.php: WP_Query::the_comment()
  • wp-includes/class-wp-query.php: WP_Query::get_posts()
  • wp-includes/class-wp-query.php: WP_Query::parse_tax_query()
  • wp-includes/load.php: shutdown_action_hook()
  • wp-includes/class-http.php: WP_Http::_dispatch_request()
  • wp-includes/functions.wp-scripts.php: wp_print_scripts()
  • wp-includes/class-http.php: WP_Http::request()
  • wp-includes/functions.php: _deprecated_function()
  • wp-includes/functions.php: _deprecated_file()
  • wp-includes/functions.php: _deprecated_argument()
  • wp-includes/functions.php: _doing_it_wrong()
  • wp-includes/functions.php: do_robots()
  • wp-includes/functions.php: do_feed()
  • wp-includes/widgets.php: wp_widgets_init()
  • wp-includes/class-wp-customize-section.php: WP_Customize_Section::maybe_render()
  • wp-includes/taxonomy.php: _update_post_term_count()
  • wp-includes/taxonomy.php: _update_generic_term_count()
  • wp-includes/taxonomy.php: clean_object_term_cache()
  • wp-includes/taxonomy.php: clean_term_cache()
  • wp-includes/taxonomy.php: wp_update_term()
  • wp-includes/taxonomy.php: wp_insert_term()
  • wp-includes/taxonomy.php: wp_set_object_terms()
  • wp-includes/taxonomy.php: wp_remove_object_terms()
  • wp-includes/taxonomy.php: wp_delete_term()
  • wp-includes/taxonomy.php: register_taxonomy()
  • wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::add_menus()
  • wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::initialize()
  • wp-includes/update.php: wp_version_check()
  • wp-includes/functions.wp-styles.php: wp_print_styles()
  • wp-includes/admin-bar.php: wp_admin_bar_render()
  • wp-includes/option.php: set_site_transient()
  • wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::preview()
  • wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::save()
  • wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::update()
  • wp-includes/option.php: delete_site_transient()
  • wp-includes/option.php: set_transient()
  • wp-includes/option.php: update_option()
  • wp-includes/option.php: add_option()
  • wp-includes/option.php: delete_option()
  • wp-includes/option.php: delete_transient()
  • wp-includes/class-wp-user-query.php: WP_User_Query::prepare_query()
  • wp-includes/user.php: reset_password()
  • wp-includes/user.php: register_new_user()
  • wp-includes/user.php: clean_user_cache()
  • wp-includes/user.php: wp_insert_user()
  • wp-includes/user.php: wp_signon()
  • wp-includes/post-thumbnail-template.php: get_the_post_thumbnail()
  • wp-includes/media.php: wp_enqueue_media()
  • wp-includes/media.php: wp_playlist_shortcode()
  • wp-includes/post.php: clean_post_cache()
  • wp-includes/post.php: clean_attachment_cache()
  • wp-includes/post.php: _transition_post_status()
  • wp-includes/post.php: _publish_post_hook()
  • wp-includes/post.php: wp_delete_attachment()
  • wp-includes/post.php: wp_publish_post()
  • wp-includes/post.php: wp_transition_post_status()
  • wp-includes/post.php: wp_untrash_post_comments()
  • wp-includes/post.php: wp_insert_post()
  • wp-includes/post.php: wp_delete_post()
  • wp-includes/post.php: wp_trash_post()
  • wp-includes/post.php: wp_untrash_post()
  • wp-includes/post.php: wp_trash_post_comments()
  • wp-includes/post.php: stick_post()
  • wp-includes/post.php: unstick_post()
  • wp-includes/post.php: register_post_type()
  • wp-includes/class-wp-rewrite.php: WP_Rewrite::set_permalink_structure()
  • wp-includes/revision.php: _wp_put_post_revision()
  • wp-includes/revision.php: wp_restore_post_revision()
  • wp-includes/revision.php: wp_delete_post_revision()
  • wp-includes/ms-functions.php: add_existing_user_to_blog()
  • wp-includes/ms-functions.php: wpmu_activate_signup()
  • wp-includes/ms-functions.php: wpmu_create_user()
  • wp-includes/ms-functions.php: wpmu_create_blog()
  • wp-includes/ms-functions.php: wpmu_signup_blog()
  • wp-includes/ms-functions.php: wpmu_signup_user()
  • wp-includes/ms-functions.php: add_user_to_blog()
  • wp-includes/ms-functions.php: remove_user_from_blog()
  • wp-includes/ms-blogs.php: switch_to_blog()
  • wp-includes/ms-blogs.php: restore_current_blog()
  • wp-includes/ms-blogs.php: update_blog_status()
  • wp-includes/ms-blogs.php: refresh_blog_details()
  • wp-includes/ms-blogs.php: update_blog_details()
  • wp-includes/ms-blogs.php: clean_blog_cache()
  • wp-includes/ms-blogs.php: wpmu_update_blogs_date()
  • wp-includes/nav-menu.php: wp_delete_nav_menu()
  • wp-includes/nav-menu.php: wp_update_nav_menu_object()
  • wp-includes/nav-menu.php: wp_update_nav_menu_item()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getPostCategories()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_setPostCategories()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_supportedMethods()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_supportedTextFilters()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getTrackbackPings()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_publishPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::pingback_ping()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::pingback_extensions_getPingbacks()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_editPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_getPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_getRecentPosts()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_getCategories()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newMediaObject()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getRecentPostTitles()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getCategoryList()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUserInfo()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getRecentPosts()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_newPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_editPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_deletePost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getMediaItem()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getMediaLibrary()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostFormats()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostType()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostTypes()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getRevisions()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_restoreRevision()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUsersBlogs()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getComments()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteComment()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editComment()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newComment()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getCommentStatusList()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getCommentCount()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostStatusList()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPageStatusList()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPages()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newPage()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deletePage()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editPage()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPageList()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getAuthors()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTags()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newCategory()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteCategory()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_suggestCategories()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getComment()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPosts()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTerm()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTerms()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTaxonomy()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTaxonomies()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUser()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsers()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getProfile()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editProfile()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPage()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deletePost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPost()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsersBlogs()
  • wp-includes/class-wp-customize-control.php: WP_Customize_Control::maybe_render()
  • wp-includes/widgets.php: dynamic_sidebar()
  • wp-includes/widgets.php: the_widget()
  • wp-includes/widgets.php: register_sidebar()
  • wp-includes/widgets.php: wp_register_sidebar_widget()
  • wp-includes/widgets.php: wp_unregister_sidebar_widget()
  • wp-includes/comment-template.php: comment_form()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::wp_ajax_update_widget()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::print_styles()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::print_scripts()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::enqueue_scripts()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::print_footer_scripts()
  • wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::customize_controls_init()
  • wp-includes/script-loader.php: print_head_scripts()
  • wp-includes/script-loader.php: wp_print_head_scripts()
  • wp-includes/script-loader.php: wp_print_footer_scripts()
  • wp-includes/script-loader.php: wp_enqueue_scripts()
  • wp-includes/comment.php: clean_comment_cache()
  • wp-includes/comment.php: wp_new_comment()
  • wp-includes/comment.php: wp_set_comment_status()
  • wp-includes/comment.php: wp_update_comment()
  • wp-includes/comment.php: wp_update_comment_count_now()
  • wp-includes/comment.php: wp_spam_comment()
  • wp-includes/comment.php: wp_unspam_comment()
  • wp-includes/comment.php: wp_transition_comment_status()
  • wp-includes/comment.php: wp_insert_comment()
  • wp-includes/comment.php: wp_blacklist_check()
  • wp-includes/comment.php: wp_delete_comment()
  • wp-includes/comment.php: wp_trash_comment()
  • wp-includes/comment.php: wp_untrash_comment()
  • wp-includes/comment.php: wp_allow_comment()
  • wp-includes/meta.php: delete_metadata()
  • wp-includes/meta.php: update_metadata_by_mid()
  • wp-includes/meta.php: delete_metadata_by_mid()
  • wp-includes/meta.php: add_metadata()
  • wp-includes/meta.php: update_metadata()
  • wp-includes/class-wp-editor.php: _WP_Editors::enqueue_scripts()
  • wp-includes/class-wp-editor.php: _WP_Editors::editor_js()
  • wp-includes/media-template.php: wp_print_media_templates()
  • wp-includes/class-wp-editor.php: _WP_Editors::editor()
  • Show 351 more used by Hide more used by

User Contributed Notes

  1. Skip to note content You must log in to vote on the helpfulness of this noteVote results for this note: 11You must log in to vote on the helpfulness of this note Contributed by Codex

    Example

    
    # ======= Somewhere in a (mu-)plugin, theme or the core =======

    Result:

    
    Array ( 
    	['eye patch'] => 'yes'
    	['parrot'] => true
    	['wooden leg'] => 1
    )
    And hook said: "I ate ice cream with Peter Pan."
    

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文