APIs (category)
Rewrite API (Clean URLs)
| add_permastruct() | Adds a new permalink structure for pretty URLs. |
| add_rewrite_endpoint() | Adds a URL endpoint, such as /trackback/. Adds additional rewrite rules for friendly URL - adds the specified endpoint. |
| add_rewrite_rule() | Adds a new URL rewrite rule (pretty permalink) to the WordPress rules structure. |
| add_rewrite_tag() | Adds/updates a query tag (for example: '%pagetype%') that can be used in pretty permalinks. This tag will be replaced with a regular expression, which is then used in a query string like: |
| flush_rewrite_rules() | Updates the permalink rewrite rules (pretty URLs) in the database and cache. Deletes existing rules, generates and writes new ones. |
| remove_permastruct() | Removes a previously added permalink structure (permalinks). |
| remove_rewrite_tag() | Removes an existing query tag, for example |
Settings API
| add_settings_error() | Registers a message for option validation to later display this message to the user. Usually, such a message is a data validation error. |
| add_settings_field() | Creates an options field for the specified section (specified settings block). |
| add_settings_section() | Creates a new block (section) in which the settings fields are displayed. That is, options are then added to this block using add_settings_field(). |
| do_settings_fields() | Displays on the screen the option fields related to the specified section. |
| do_settings_sections() | Outputs to the screen all option blocks related to the specified settings page in the admin panel. |
| get_settings_errors() | Retrieves messages registered by the function add_settings_error(). |
| register_setting() | Registers a new option and a callback function to handle the option value when it is saved to the database. |
| settings_errors() | Displays on the screen messages (notices and errors) registered by the function add_settings_error(). |
| settings_fields() | Outputs hidden form fields on the settings page (option_page, _wpnonce, ...). |
| unregister_setting() | Allows unregistering previously registered settings (options). Most often used with a plugin deactivation function: register_deactivation_hook(). |
Cron API
| do_enclose() | Checks the specified post for links to Video and Audio in its content. If links are found, it adds these URLs to the meta-fields |
| wp_clear_scheduled_hook() | Deletes all cron jobs attached to the specified hook and having the specified parameters. Works based on wp_unschedule_event(). |
| wp_cron() | Run all scheduled cron events whose time has come. |
| wp_doing_cron() | Determines whether the current request is a request to Cron. Conditional tag. |
| wp_get_scheduled_event() | Gets the scheduled wp-cron task - the data of the specified task in the form of an object. |
| wp_get_schedules() | Gets the supported Cron time intervals. |
| wp_next_scheduled() | Returns the timestamp when the next scheduled cron job is supposed to run. Allows checking if the specified job is in the cron. |
| wp_schedule_event() | Creates a recurring cron job. Sets a hook that will be called every time after the specified interval of time. |
| wp_schedule_single_event() | Creates a one-time cron job. Sets a hook that will be called only once at the specified time. |
| wp_unschedule_event() | Deletes the specified cron action from the schedule. To delete, you need to specify all the data: timestamp, hook name, and parameters. |
| wp_unschedule_hook() | Deletes all cron tasks from the schedule for the specified hook. It does not matter what parameters were specified when registering the task. |
REST API
| get_rest_url() | Gets the URL of the REST API endpoint. Allows specifying the site of the network. |
| register_rest_field() | Registers a new REST field for the specified type of REST object (resource). |
| register_rest_route() | Registers a REST API route and its endpoints. Simply put, registers the URL at which the specified PHP function will be triggered. |
| rest_ensure_response() | Checks and, if necessary, converts the passed data into an object of the WP_HTTP_Response class. |
| rest_is_boolean() | Determines if a given value is a boolean or boolean-like. Doesn't look at the type of a given value, and like in PHP, |
| rest_output_link_wp_head() | Displays a link to the root REST API route in the <head> section on all site pages. |
| rest_sanitize_array() | Converts the given value to an indexed array. If the conversion is not possible, it returns an empty array. |
| rest_stabilize_value() | Unifies (standardizes) the passed value according to the semantics of the JSON schema. |
| rest_url() | Gets the REST API URL for the current site. You can specify a specific route. |
| WP_Application_Passwords::create_new_application_password() | Creates an Application Password. |
| wp_authenticate_application_password() | Authorizes the user using the application password. |
| wp_generate_uuid4() | Generates an identifier - a random unique string consisting of letters and numbers. Creates UUID (Universally unique identifier) version 4. |
| wp_is_application_passwords_available() | Checks if Application Passwords can be used for the current request. |
| wp_is_rest_endpoint() | Checks if the current request is a request to the REST API. |
| wp_is_uuid() | Checks if the specified string is a UUID string. |
HTTP API
| status_header() | Sets the specified status in the HTTP response header of the server. HTTP status code (200, 404, etc.). |
| wp_get_http_headers() | Retrieves the HTTP headers of the specified URL. |
| wp_remote_get() | Retrieve the raw response from the HTTP request using the GET method. It's a wrapper for curl. The result includes HTTP headers and content of the webpage, and returned in the form of an array. |
| wp_remote_head() | Gets the HTTP response for a request. Uses the HEAD request method. Retrieves only headers, without the response body. |
| wp_remote_post() | Gets a remote page using the HTTP POST method. The result includes HTTP headers and content of the webpage and returned in the form of an array. It's a wrapper for curl. |
| wp_remote_request() | Creates any type of HTTP request and returns the response of the request as an array. |
| wp_remote_retrieve_body() | Retrieves the content (body) of a response which was retrieved by any of the functions like wp_remote_*(), for example wp_remote_get(). |
| wp_remote_retrieve_cookie() | Retrieves the data of a specific named cookie from the response passed to the request. |
| wp_remote_retrieve_cookie_value() | Retrieve the value of the specified cookie from the passed query response. |
| wp_remote_retrieve_cookies() | Retrieves all data of all cookies from the given response to a request. |
| wp_remote_retrieve_header() | Retrieves the specified response header field from the passed response object. |
| wp_remote_retrieve_headers() | Retrieves all response header fields from the passed response object. |
| wp_remote_retrieve_response_code() | Gets the response code (status response) from the provided request object. |
| wp_remote_retrieve_response_message() | Retrieves the response message from the passed response object. |
| wp_safe_remote_request() | Gets data for the given HTTP request (URL). Data is returned as an array: body, headers, response status... |