'', 'number' => 0, ), $atts, 'upcomingevents' ); $args = array( 'context' => 'shortcode', 'number' => absint( $atts['number'] ), ); $events = icalendar_render_events( $atts['url'], $args ); if ( ! $events ) { $events = sprintf( '
%s
', __( 'No upcoming events', 'jetpack' ) ); } return $events; } } add_action( 'plugins_loaded', array( 'Upcoming_Events_Shortcode', 'init' ), 101 );