\WP_Stager_Integration\Shortcodes::callback_wpstager_ongoing(array $atts = array(), string $content = ''): string

Description

Callback for [wpstager_ongoing] shortcode.

Parameters:

ParameterTypeDescription
$atts array Shortcode attributes.
$content string Shortcode content.

Returns:

string Shortcode output HTML.

Information

Fileclass-shortcodes.php line 199
See also

Full Code

/**
 * Callback for <code>[wpstager_ongoing]</code> shortcode.
 *
 * @param array $atts Shortcode attributes.
 * @param string $content Shortcode content.
 *
 * @return string Shortcode output HTML.
 *
 * @see \WP_Stager_Integration\Calendar::render_currently_happening() for accepted arguments.
 */
public static function callback_wpstager_ongoing( $atts = array(), $content = '' ) {

    // Parse args
    $args = wp_parse_args( $atts, array() );

    ob_start();
    Calendar::render_currently_happening( $args );
    return ob_get_clean();
}

💡 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!