Changeset 59824 for trunk/src/wp-includes/cron.php
- Timestamp:
- 02/14/2025 07:35:51 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r58975 r59824 316 316 * Reschedules a recurring event. 317 317 * 318 * Mainly for internal use, this takes the U TC timestampof a previously run318 * Mainly for internal use, this takes the Unix timestamp (UTC) of a previously run 319 319 * recurring event and reschedules it for its next run. 320 320 * … … 486 486 * 487 487 * @param null|bool|WP_Error $pre Value to return instead. Default null to continue unscheduling the event. 488 * @param int $timestamp Timestampfor when to run the event.488 * @param int $timestamp Unix timestamp (UTC) for when to run the event. 489 489 * @param string $hook Action hook, the execution of which will be unscheduled. 490 490 * @param array $args Arguments to pass to the hook's callback function. … … 819 819 820 820 /** 821 * Retrieves the next timestamp for an event.821 * Retrieves the timestamp of the next scheduled event for the given hook. 822 822 * 823 823 * @since 2.1.0 … … 828 828 * event, so they should be the same as those used when originally scheduling the event. 829 829 * Default empty array. 830 * @return int|false The Unix timestamp of the next time the event will occur. False if the event doesn't exist.830 * @return int|false The Unix timestamp (UTC) of the next time the event will occur. False if the event doesn't exist. 831 831 */ 832 832 function wp_next_scheduled( $hook, $args = array() ) { … … 837 837 } 838 838 839 return $next_event->timestamp; 839 /** 840 * Filters the timestamp of the next scheduled event for the given hook. 841 * 842 * @since 6.8.0 843 * 844 * @param int $timestamp Unix timestamp (UTC) for when to next run the event. 845 * @param object $next_event { 846 * An object containing an event's data. 847 * 848 * @type string $hook Action hook of the event. 849 * @type int $timestamp Unix timestamp (UTC) for when to next run the event. 850 * @type string $schedule How often the event should subsequently recur. 851 * @type array $args Array containing each separate argument to pass to the hook 852 * callback function. 853 * @type int $interval Optional. The interval time in seconds for the schedule. Only 854 * present for recurring events. 855 * } 856 * @param array $args Array containing each separate argument to pass to the hook 857 * callback function. 858 */ 859 return apply_filters( 'wp_next_scheduled', $next_event->timestamp, $next_event, $hook, $args ); 840 860 } 841 861 … … 930 950 * } 931 951 * } 932 * @param string $doing_wp_cron The unix timestampof the cron lock.952 * @param string $doing_wp_cron The Unix timestamp (UTC) of the cron lock. 933 953 */ 934 954 $cron_request = apply_filters(
Note: See TracChangeset
for help on using the changeset viewer.