wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_get_schedule › WordPress Function
Depuis2.1.0
Dépréciéen/a
› wp_get_schedule ( $hook, $args = array() )
Paramètres: (2) |
|
Voir: | |
Retourne: |
|
Défini(e) dans: |
|
Codex: | |
Changelog: |
|
Retrieves the name of the recurrence schedule for an event.
Fonctions en relation: wp_get_schedules, wp_next_scheduled, wp_get_scheduled_event, wp_get_theme, wp_get_themes
Source
function wp_get_schedule( $hook, $args = array() ) { $schedule = false; $event = wp_get_scheduled_event( $hook, $args ); if ( $event ) { $schedule = $event->schedule; } /** * Filters the schedule name for a hook. * * @since 5.1.0 * * @param string|false $schedule Schedule for the hook. False if not found. * @param string $hook Action hook to execute when cron is run. * @param array $args Arguments to pass to the hook's callback function. */ return apply_filters( 'get_schedule', $schedule, $hook, $args ); }