[wpstager_ongoing]
[wpstager_ongoing]Description
Registers the [wpstager_ongoing] shortcode.
Any attributes added to the shortcode will be passed directly as arguments to the \WP_Stager_Integration\Calendar::render_currently_happening() method.
Example:
// This will render the currently happening events
[wpstager_ongoing]
Information
| File | class-shortcodes.php line 67 |
|---|---|
| Callback | WP_Stager_Integration\Shortcodes::callback_wpstager_ongoing() |
| See also |
|
Full Code
/**
* Registers the <code>[wpstager_ongoing]</code> shortcode.
*
* Any attributes added to the shortcode will be passed directly as arguments to the <code>\WP_Stager_Integration\Calendar::render_currently_happening()</code> method.
*
* @example
* // This will render the currently happening events
* [wpstager_ongoing]
*
* @see \WP_Stager_Integration\Calendar::render_calendar() for accepted arguments
* @see \WP_Stager_Integration\Shortcodes::callback_wpstager_ongoing()
*/
add_shortcode( 'wpstager_ongoing', array( __CLASS__, 'callback_wpstager_ongoing' ) );💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration
🎁 Limited offer: Use code WELCOME26 to get your first month for free!

