WP_REST_Widget_Types_Controller::get_widget_form()wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php | Returns the output of WP_Widget::form() when called with the provided instance. Used by encode_form_data() to preview a widget’s form.
|
WP_HTTP_Requests_Hooks::dispatch()wp-includes/class-wp-http-requests-hooks.php | Dispatch a Requests hook to a native WordPress action.
|
WP_Term_Query::get_terms()wp-includes/class-wp-term-query.php | Retrieves the query results.
|
WP_Network_Query::get_networks()wp-includes/class-wp-network-query.php | Gets a list of networks matching the query vars.
|
WP_Network_Query::parse_query()wp-includes/class-wp-network-query.php | Parses arguments passed to the network query with default query parameters.
|
WP_Site_Query::get_sites()wp-includes/class-wp-site-query.php | Retrieves a list of sites matching the query vars.
|
WP_Site_Query::parse_query()wp-includes/class-wp-site-query.php | Parses arguments passed to the site query with default query parameters.
|
do_action_deprecated()wp-includes/plugin.php | Fires functions attached to a deprecated action hook.
|
WP_Comment_Query::get_comments()wp-includes/class-wp-comment-query.php | Get a list of comments matching the query vars.
|
WP_Comment_Query::parse_query()wp-includes/class-wp-comment-query.php | Parse arguments passed to the comment query with default query parameters.
|
WP_Query::setup_postdata()wp-includes/class-wp-query.php | Sets up global post data.
|
WP_User_Search::prepare_query()wp-admin/includes/deprecated.php | Prepares the user search query (legacy).
|
edit_user()wp-admin/includes/user.php | Edit user settings based on contents of $_POST
|
WP_Styles::__construct()wp-includes/class-wp-styles.php | Constructor.
|
wp_mail()wp-includes/pluggable.php | Sends an email, similar to PHP’s mail function.
|
WP::main()wp-includes/class-wp.php | Sets up all of the variables required by the WordPress environment.
|
WP::parse_request()wp-includes/class-wp.php | Parses the request to find the correct WordPress query.
|
WP::send_headers()wp-includes/class-wp.php | Sends additional HTTP headers for caching, content type, etc.
|
WP_Query::the_post()wp-includes/class-wp-query.php | Sets up the current post.
|
WP_Query::have_posts()wp-includes/class-wp-query.php | Determines whether there are more posts available in the loop.
|
WP_Query::set_404()wp-includes/class-wp-query.php | Sets the 404 property and saves whether query is feed.
|
WP_Query::get_posts()wp-includes/class-wp-query.php | Retrieves an array of posts based on query variables.
|
WP_Query::parse_query()wp-includes/class-wp-query.php | Parses a query string and sets query type booleans.
|
WP_Http_Curl::request()wp-includes/class-wp-http-curl.php | Send a HTTP request to a URI using cURL extension.
|
wp_admin_bar_render()wp-includes/admin-bar.php | Renders the admin bar to the page based on the $wp_admin_bar->menu member var.
|
fetch_feed()wp-includes/feed.php | Builds SimplePie object based on RSS or Atom feed from URL.
|
WP_User_Query::prepare_query()wp-includes/class-wp-user-query.php | Prepares the query variables.
|
wp_signon()wp-includes/user.php | Authenticates and logs a user in with ‘remember’ capability.
|
WP_Rewrite::rewrite_rules()wp-includes/class-wp-rewrite.php | Constructs rewrite matches and queries from permalink structure.
|
WP_Scripts::init()wp-includes/class-wp-scripts.php | Initialize the class.
|
WP_Widget::form_callback()wp-includes/class-wp-widget.php | Generates the widget control form (Do NOT override).
|
pingback()wp-includes/comment.php | Pings back the links found in a post.
|
Basic Example
Call an action and pass an array of arguments:
This is the same as:
Here’s a variation on the “separate parameters” example given above. It allows you to specify separate parameters -and- modify them:
Hook:
Callback: