Created
November 11, 2013 15:59
-
-
Save ckpicker/7415507 to your computer and use it in GitHub Desktop.
Community Events Add-on 3.2 // Show only one month in date picker
This file contains 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
add_action( 'wp_footer', 'community_add_javascript', 100 ); | |
function community_add_javascript() { | |
if (tribe_is_community_edit_event_page()) { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
jQuery('#EventStartDate, #EventEndDate').datepicker( "option", "numberOfMonths", 1 ); | |
}); | |
</script> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment