[wpstager_today]

Description

Registers the [wpstager_today] shortcode.

Any attributes added to the shortcode will be passed directly as arguments to the \WP_Stager_Integration\Calendar::render_day() method.

Example:

// This will render the current day's events
[wpstager_today]

// This will hide the day label
[wpstager_today show_label_day="false"]

// This will show the day label and hide the navigation
[wpstager_today show_label_day="true" show_nav="false"]

Information

Fileclass-shortcodes.php line 53
CallbackWP_Stager_Integration\Shortcodes::callback_wpstager_today()
See also

Full Code

/**
 * Registers the <code>[wpstager_today]</code> shortcode.
 *
 * Any attributes added to the shortcode will be passed directly as arguments to the <code>\WP_Stager_Integration\Calendar::render_day()</code> method.
 *
 * @example
 * // This will render the current day's events
 * [wpstager_today]
 *
 * // This will hide the day label
 * [wpstager_today show_label_day="false"]
 *
 * // This will show the day label and hide the navigation
 * [wpstager_today show_label_day="true" show_nav="false"]
 *
 * @see \WP_Stager_Integration\Calendar::render_day() for accepted arguments.
 * @see \WP_Stager_Integration\Shortcodes::callback_wpstager_today()
 */
add_shortcode( 'wpstager_today', array( __CLASS__, 'callback_wpstager_today' ) );

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