apply_filters('wpstagerintegration_calendar_component_template', '', string $component, array $args): string

Description

Filter hook to modify the calendar component path to include.

Parameters:

ParameterTypeDescription
$path string The component path to include
$component string The component to render (e.g. 'year', 'month', 'week', etc).
$args array Additional arguments to pass to the component template.

Returns:

string Return the full path to a custom template to include. Returning a falsey value will result in the original component to be included.

Information

Fileclass-calendar.php line 2039

Full Code

/**
 * Filter hook to modify the calendar component path to include.
 *
 * @param string    $path       The component path to include
 * @param string    $component  The component to render (e.g. <code>'year'</code>, <code>'month'</code>, <code>'week'</code>, etc).
 * @param array     $args       Additional arguments to pass to the component template.
 *
 * @return string   Return the full path to a custom template to include. Returning a falsey value will result in the original component to be included.
 */
$custom_template_path = (string) (apply_filters( 'wpstagerintegration_calendar_component_template', '', $component, $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!