Changeset 55170
- Timestamp:
- 01/31/2023 05:48:45 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r55038 r55170 438 438 439 439 /** 440 * Unschedule a previously scheduled event.441 * 442 * The $timestamp and $hookparameters are required so that the event can be440 * Unschedules a previously scheduled event. 441 * 442 * The `$timestamp` and `$hook` parameters are required so that the event can be 443 443 * identified. 444 444 * … … 709 709 710 710 /** 711 * Retrieve a scheduled event.712 * 713 * Retrieve the full event object for a given event, if no timestamp is specified the next711 * Retrieves a scheduled event. 712 * 713 * Retrieves the full event object for a given event, if no timestamp is specified the next 714 714 * scheduled event is returned. 715 715 * … … 793 793 794 794 /** 795 * Retrieve the next timestamp for an event.795 * Retrieves the next timestamp for an event. 796 796 * 797 797 * @since 2.1.0 … … 925 925 926 926 /** 927 * Register _wp_cron() to run on the {@see 'wp_loaded'} action.927 * Registers _wp_cron() to run on the {@see 'wp_loaded'} action. 928 928 * 929 929 * If the {@see 'wp_loaded'} action has already fired, this function calls … … 952 952 953 953 /** 954 * Run scheduled callbacks or spawncron for all scheduled events.954 * Runs scheduled callbacks or spawns cron for all scheduled events. 955 955 * 956 956 * Warning: This function may return Boolean FALSE, but may also return a non-Boolean … … 1004 1004 1005 1005 /** 1006 * Retrieve supported event recurrence schedules.1006 * Retrieves supported event recurrence schedules. 1007 1007 * 1008 1008 * The default supported recurrences are 'hourly', 'twicedaily', 'daily', and 'weekly'. … … 1031 1031 * @since 5.4.0 The 'weekly' schedule was added. 1032 1032 * 1033 * @return array[] 1033 * @return array { 1034 * The array of cron schedules keyed by the schedule name. 1035 * 1036 * @type array ...$0 { 1037 * Cron schedule information. 1038 * 1039 * @type int $interval The schedule interval in seconds. 1040 * @type string $display The schedule display name. 1041 * } 1042 * } 1034 1043 */ 1035 1044 function wp_get_schedules() { … … 1058 1067 * @since 2.1.0 1059 1068 * 1060 * @param array[] $new_schedules An array of non-default cron schedule arrays. Default empty. 1069 * @param array $new_schedules { 1070 * An array of non-default cron schedules keyed by the schedule name. Default empty array. 1071 * 1072 * @type array ...$0 { 1073 * Cron schedule information. 1074 * 1075 * @type int $interval The schedule interval in seconds. 1076 * @type string $display The schedule display name. 1077 * } 1078 * } 1061 1079 */ 1062 1080 return array_merge( apply_filters( 'cron_schedules', array() ), $schedules ); … … 1064 1082 1065 1083 /** 1066 * Retrieve the recurrence schedule for an event.1084 * Retrieves the name of the recurrence schedule for an event. 1067 1085 * 1068 1086 * @see wp_get_schedules() for available schedules. … … 1085 1103 1086 1104 /** 1087 * Filters the schedule for a hook.1105 * Filters the schedule name for a hook. 1088 1106 * 1089 1107 * @since 5.1.0 … … 1097 1115 1098 1116 /** 1099 * Retrieve cron jobs ready to be run.1117 * Retrieves cron jobs ready to be run. 1100 1118 * 1101 1119 * Returns the results of _get_cron_array() limited to events ready to be run, … … 1144 1162 1145 1163 /** 1146 * Retrieve cron info array option.1164 * Retrieves cron info array option. 1147 1165 * 1148 1166 * @since 2.1.0 … … 1199 1217 1200 1218 /** 1201 * Upgrade a cron info array.1219 * Upgrades a cron info array. 1202 1220 * 1203 1221 * This function upgrades the cron info array to version 2.
Note: See TracChangeset
for help on using the changeset viewer.