Make WordPress Core


Ignore:
Timestamp:
02/07/2023 09:19:46 PM (2 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous improvements and corrections to docblocks.

See #56792

File:
1 edited

Legend:

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

    r55170 r55293  
    7878     *
    7979     * @param null|bool|WP_Error $result   The value to return instead. Default null to continue adding the event.
    80      * @param stdClass           $event    {
     80     * @param object             $event    {
    8181     *     An object containing an event's data.
    8282     *
     
    8585     *     @type string|false $schedule  How often the event should subsequently recur.
    8686     *     @type array        $args      Array containing each separate argument to pass to the hook's callback function.
    87      *     @type int          $interval  The interval time in seconds for the schedule. Only present for recurring events.
     87     *     @type int          $interval  Optional. The interval time in seconds for the schedule. Only present for recurring events.
    8888     * }
    8989     * @param bool               $wp_error Whether to return a WP_Error on failure.
     
    165165     * @since 3.1.0
    166166     *
    167      * @param stdClass|false $event {
     167     * @param object|false $event {
    168168     *     An object containing an event's data, or boolean false to prevent the event from being scheduled.
    169169     *
     
    172172     *     @type string|false $schedule  How often the event should subsequently recur.
    173173     *     @type array        $args      Array containing each separate argument to pass to the hook's callback function.
    174      *     @type int          $interval  The interval time in seconds for the schedule. Only present for recurring events.
     174     *     @type int          $interval  Optional. The interval time in seconds for the schedule. Only present for recurring events.
    175175     * }
    176176     */
     
    386386     *
    387387     * @param null|bool|WP_Error $pre      Value to return instead. Default null to continue adding the event.
    388      * @param stdClass           $event    {
     388     * @param object             $event    {
    389389     *     An object containing an event's data.
    390390     *
     
    723723 * @param int|null $timestamp Optional. Unix timestamp (UTC) of the event. If not specified, the next scheduled event
    724724 *                            is returned. Default null.
    725  * @return object|false The event object. False if the event does not exist.
     725 * @return object|false {
     726 *     The event object. False if the event does not exist.
     727 *
     728 *     @type string       $hook      Action hook to execute when the event is run.
     729 *     @type int          $timestamp Unix timestamp (UTC) for when to next run the event.
     730 *     @type string|false $schedule  How often the event should subsequently recur.
     731 *     @type array        $args      Array containing each separate argument to pass to the hook's callback function.
     732 *     @type int          $interval  Optional. The interval time in seconds for the schedule. Only present for recurring events.
     733 * }
    726734 */
    727735function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) {
Note: See TracChangeset for help on using the changeset viewer.