Changeset 50175
- Timestamp:
- 02/03/2021 11:06:39 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r50174 r50175 31 31 * @param string $hook Action hook to execute when the event is run. 32 32 * @param array $args Optional. Array containing arguments to pass to the 33 * hook's callback function. Each value in the array is passed34 * to the callback as an individual parameter. The array keys35 * are ignored. Default:empty array.33 * hook's callback function. Each value in the array 34 * is passed to the callback as an individual parameter. 35 * The array keys are ignored. Default empty array. 36 36 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 37 37 * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure. … … 227 227 * @param string $hook Action hook to execute when the event is run. 228 228 * @param array $args Optional. Array containing arguments to pass to the 229 * hook's callback function. Each value in the array is passed230 * to the callback as an individual parameter. The array keys231 * are ignored. Default:empty array.229 * hook's callback function. Each value in the array 230 * is passed to the callback as an individual parameter. 231 * The array keys are ignored. Default empty array. 232 232 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 233 233 * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure. … … 332 332 * @param string $hook Action hook to execute when the event is run. 333 333 * @param array $args Optional. Array containing arguments to pass to the 334 * hook's callback function. Each value in the array is passed335 * to the callback as an individual parameter. The array keys336 * are ignored. Default:empty array.334 * hook's callback function. Each value in the array 335 * is passed to the callback as an individual parameter. 336 * The array keys are ignored. Default empty array. 337 337 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 338 338 * @return bool|WP_Error True if event successfully rescheduled. False or WP_Error on failure. … … 455 455 * Although not passed to a callback, these arguments are used to uniquely identify the 456 456 * event, so they should be the same as those used when originally scheduling the event. 457 * Default empty array. 457 458 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 458 459 * @return bool|WP_Error True if event successfully unscheduled. False or WP_Error on failure. … … 536 537 * Although not passed to a callback, these arguments are used to uniquely identify the 537 538 * event, so they should be the same as those used when originally scheduling the event. 539 * Default empty array. 538 540 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 539 541 * @return int|false|WP_Error On success an integer indicating number of events unscheduled (0 indicates no … … 720 722 * Although not passed to a callback, these arguments are used to uniquely identify the 721 723 * event, so they should be the same as those used when originally scheduling the event. 722 * @param int|null $timestamp Optional. Unix timestamp (UTC) of the event. If not specified, the next scheduled event is returned. 724 * Default empty array. 725 * @param int|null $timestamp Optional. Unix timestamp (UTC) of the event. If not specified, the next scheduled event 726 * is returned. Default null. 723 727 * @return object|false The event object. False if the event does not exist. 724 728 */ … … 799 803 * Although not passed to a callback, these arguments are used to uniquely identify the 800 804 * event, so they should be the same as those used when originally scheduling the event. 805 * Default empty array. 801 806 * @return int|false The Unix timestamp of the next time the event will occur. False if the event doesn't exist. 802 807 */ … … 1070 1075 * @param string $hook Action hook to identify the event. 1071 1076 * @param array $args Optional. Arguments passed to the event's callback function. 1077 * Default empty array. 1072 1078 * @return string|false Schedule name on success, false if no schedule. 1073 1079 */ … … 1087 1093 * @param string|false $schedule Schedule for the hook. False if not found. 1088 1094 * @param string $hook Action hook to execute when cron is run. 1089 * @param array $args Optional.Arguments to pass to the hook's callback function.1095 * @param array $args Arguments to pass to the hook's callback function. 1090 1096 */ 1091 1097 return apply_filters( 'get_schedule', $schedule, $hook, $args );
Note: See TracChangeset
for help on using the changeset viewer.