Created
October 21, 2014 15:03
-
-
Save jesseeproductions/344dcb2d0a3b5600240f to your computer and use it in GitHub Desktop.
The Events Calendar List Widget Get Events from a Specific Month @3.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The Events Calendar List Widget Get Events from a Specific Month @3.8 | |
* $month_num is set manually to November | |
*/ | |
add_filter( 'tribe_events_list_widget_query_args', 'customize_list_widget', 10, 1 ); | |
function customize_list_widget( $tribe_args_list ) { | |
$month_num = '11'; | |
$tribe_args_list['eventDate'] = date('Y') . "-$month_num-01 00:00:00"; | |
return $tribe_args_list; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment