Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_shortcode(){
- $d = new DateTime('NOW');
- $d->modify( 'next month' );
- $month = $d->format( 'm' );
- $y = new DateTime('NOW');
- $year = $d->format( 'yyyy' );
- echo do_shortcode('[events_calendar year="'.$year.'" month="'.$month.'" long_events=1 full=1]');
- }
- add_shortcode( 'custom_calendar', 'custom_shortcode' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement