Title: get_schedule
Published: February 22, 2019
Last modified: May 20, 2026

---

# apply_filters( ‘get_schedule’, string|false $schedule, string $hook, array $args )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#wp--skip-link--target)

Filters the schedule name for a hook.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#parameters)󠁿

 `$schedule`string|false

Schedule for the hook. False if not found.

`$hook`string

Action hook to execute when cron is run.

`$args`array

Arguments to pass to the hook’s callback function.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'get_schedule', $schedule, $hook, $args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/cron.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/cron.php#L1200)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/cron.php#L1200-L1200)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_get_schedule()](https://developer.wordpress.org/reference/functions/wp_get_schedule/)`wp-includes/cron.php` |

Retrieves the name of the recurrence schedule for an event.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/get_schedule/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.1.0](https://developer.wordpress.org/reference/since/5.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fget_schedule%2F)
before being able to contribute a note or feedback.