Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_unschedule_event()

3 tags 1 category

wp_unschedule_event() — Unschedules a previously scheduled event. The $timestamp and $hook parameters are required so that the event can be identified.

Inputs: $timestamp (int): Unix timestamp (UTC) of the event. $hook (string): Action hook of the event. $args (array): Optional. Array containing each separate argument to pass to the hook’s callback function. Although not passed to a callback, these arguments are used to uniquely identify the event, so they must match those used when originally scheduling the event. If the arguments do not match exactly, the event will not be found. Default empty array. $wp_error (bool): Optional. Whether to return a WP_Error on failure. Default false.

Returns bool|WP_Error: True if event successfully unscheduled. False or WP_Error on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…