Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Yes, we take that value from Settings > General > Week Starts On

    alternatively you can customize that specifically via PHP using our filter wpfc_js_vars and modifying the passed value e.g.

    function my_wpfc_custom_function($args){
      $args['firstDay'] = 1; // 0=Sunday, 1=Monday, etc.
    }
    add_filter('wpfc_js_vars','my_wpfc_custom_function');

    Hi, this filter doesn’t seems to work with the month arg, like so :

    function my_wpfc_custom_function($args){
    $args[‘month’] = 4; // 0=jan, 2=fev, etc.
    //return $args;
    }
    add_filter(‘wpfc_js_vars’, ‘my_wpfc_custom_function’);

    why?

    Any help would be really appreciated !
    My purpose is that :
    on page refresh, the calendar could load on current edited month
    (i’m using a bootstrap modal to edit calendar’s events on click).

    do i need to hardcode the function localize_script() in wp-fullcalendar.php ?

    Regards,

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but I’m afraid that the month attribute is not currently included.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change firstDay of monthly calendar from Mon to Sun’ is closed to new replies.