|

srfm_datepicker_week_start

Description

Filters the first day of the week for date-picker fields. Defaults to ‘sunday’. (Pro only)

Parameters

  • $week_start (string) – The week start day.
  • $form_id (int) – The form ID.
  • $block_id (string) – The block ID.

Filter Source

PHP
/**
* filter source (Pro) inc/block-assets.php 
*/
$week_start = apply_filters( 'srfm_datepicker_week_start', 'sunday', $form_id, $block_id );

Filter Usage

PHP
add_filter( 'srfm_datepicker_week_start', 'my_callback', 10, 3 ); 
function my_callback( $week_start, $form_id, $block_id ) { 
return 'monday';
 }

Filter Example

PHP
add_filter( 'srfm_datepicker_week_start', 'my_callback', 10, 3 ); 
function my_callback( $week_start, $form_id, $block_id ) { 
return 'monday'; 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top