\WP_Stager_Integration\Event::is_single_event(): bool

Description

Checks if the current query is for a single event page.

Returns:

bool True if for a single event page, false otherwise.

Information

Fileclass-event.php line 104

Full Code

/**
 * Checks if the current query is for a single event page.
 *
 * @return bool True if for a single event page, false otherwise.
 */
public static function is_single_event() {

    // Get data
    return (bool) is_singular( self::CPT_SLUG );
}

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