apply_filters('wpstagerintegration_calendar_label_week', $default, int $year, int $week, int $timestamp, array $args): string

Description

Filters the default calendar "week" label text.

Parameters:

ParameterTypeDescription
$label string The label text
$year int A year number (e.g. 2000)
$week int A week number (1-53)
$timestamp int A Unix timestamp of the start of the first day (00:00:00 in the site's timezone) of the week
$args array Additional arguments passed to the component template.

Returns:

string Must return a string

Information

Fileclass-calendar.php line 334

Full Code

/**
 * Filters the default calendar "week" label text.
 *
 * @param string    $label      The label text
 * @param int       $year       A year number (e.g. 2000)
 * @param int       $week       A week number (1-53)
 * @param int       $timestamp  A Unix timestamp of the start of the first day (00:00:00 in the site's timezone) of the week
 * @param array     $args       Additional arguments passed to the component template.
 *
 * @return string   Must return a string
 */
$label = (string) apply_filters( 'wpstagerintegration_calendar_label_week', $default, $year, $week, $timestamp, $args )

💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration

🎁 Limited offer: Use code WELCOME26 to get your first month for free!