WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cron.php

    r10234 r9716  
    1717 *
    1818 * @param int $timestamp Timestamp for when to run the event.
    19  * @param string $hook Action hook to execute when cron is run.
    20  * @param array $args Optional. Arguments to pass to the hook's callback function.
     19 * @param callback $hook Function or method to call, when cron is run.
     20 * @param array $args Optional. Arguments to pass to the hook function.
    2121 */
    2222function wp_schedule_single_event( $timestamp, $hook, $args = array()) {
     
    4444 * @param int $timestamp Timestamp for when to run the event.
    4545 * @param string $recurrence How often the event should recur.
    46  * @param string $hook Action hook to execute when cron is run.
    47  * @param array $args Optional. Arguments to pass to the hook's callback function.
     46 * @param callback $hook Function or method to call, when cron is run.
     47 * @param array $args Optional. Arguments to pass to the hook function.
    4848 * @return bool|null False on failure, null when complete with scheduling event.
    4949 */
     
    6666 * @param int $timestamp Timestamp for when to run the event.
    6767 * @param string $recurrence How often the event should recur.
    68  * @param string $hook Action hook to execute when cron is run.
    69  * @param array $args Optional. Arguments to pass to the hook's callback function.
     68 * @param callback $hook Function or method to call, when cron is run.
     69 * @param array $args Optional. Arguments to pass to the hook function.
    7070 * @return bool|null False on failure. Null when event is rescheduled.
    7171 */
     
    101101 *
    102102 * @param int $timestamp Timestamp for when to run the event.
    103  * @param string $hook Action hook, the execution of which will be unscheduled.
    104  * @param array $args Arguments to pass to the hook's callback function.
    105  * Although not passed to a callback function, these arguments are used
    106  * to uniquely identify the scheduled event, so they should be the same
    107  * as those used when originally scheduling the event.
     103 * @param callback $hook Function or method to call, when cron is run.
     104 * @param array $args Optional. Arguments to pass to the hook function.
    108105 */
    109106function wp_unschedule_event( $timestamp, $hook, $args = array() ) {
     
    123120 * @since 2.1.0
    124121 *
    125  * @param string $hook Action hook, the execution of which will be unscheduled.
     122 * @param callback $hook Function or method to call, when cron is run.
    126123 * @param mixed $args,... Optional. Event arguments.
    127124 */
     
    138135 * @since 2.1.0
    139136 *
    140  * @param string $hook Action hook to execute when cron is run.
    141  * @param array $args Optional. Arguments to pass to the hook's callback function.
     137 * @param callback $hook Function or method to call, when cron is run.
     138 * @param array $args Optional. Arguments to pass to the hook function.
    142139 * @return bool|int The UNIX timestamp of the next time the scheduled event will occur.
    143140 */
     
    284281 * @since 2.1.0
    285282 *
    286  * @param string $hook Action hook to execute when cron is run.
    287  * @param array $args Optional. Arguments to pass to the hook's callback function.
     283 * @param callback $hook Function or method to call, when cron is run.
     284 * @param array $args Optional. Arguments to pass to the hook function.
    288285 * @return string|bool False, if no schedule. Schedule on success.
    289286 */
Note: See TracChangeset for help on using the changeset viewer.