gravityflowvacation_start_month

Description

Use this filter to change the starting month for vacation calculations.

Parameter

ParameterTypeDefinition
$monthIntegerThe month number

Examples

Set ‘August’ as starting month for vacation calculation

add_filter( 'gravityflowvacation_start_month', 'sh_gravityflowvacation_start_month',10,2 );
function sh_gravityflowvacation_start_month( $month, $user_id ) {
     return '08';
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?