\WP_Stager_Integration\Shortcodes::callback_wpstager_today(array $atts = array(), string $content = ''): string
\WP_Stager_Integration\Shortcodes::callback_wpstager_today(array $atts = array(), string $content = ''): stringDescription
Callback for [wpstager_today] shortcode.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$atts | array | Shortcode attributes. |
$content | string | Shortcode content. |
Returns:
string Shortcode output HTML.
Information
| File | class-shortcodes.php line 179 |
|---|---|
| See also |
|
Full Code
/**
* Callback for <code>[wpstager_today]</code> shortcode.
*
* @param array $atts Shortcode attributes.
* @param string $content Shortcode content.
*
* @return string Shortcode output HTML.
*
* @see \WP_Stager_Integration\Calendar::render_day() for accepted arguments.
*/
public static function callback_wpstager_today( $atts = array(), $content = '' ) {
// Parse args
$args = wp_parse_args( $atts, array() );
ob_start();
Calendar::render_day( null, null, null, $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!

