\WP_Stager_Integration\Event::init()

Description

Class initialization.

Information

Fileclass-event.php line 42

Full Code

/**
 * Class initialization.
 */
public static function init() {

    add_filter( 'the_content', array( __CLASS__, 'filter_event_content' ) );
    add_filter( 'get_the_date', array( __CLASS__, 'filter_event_date' ), 10, 3 );
    add_action( 'template_redirect', array( __CLASS__, 'return_404_for_hidden_statuses' ) );
    add_action( 'template_redirect', array( __CLASS__, 'redirect_default_event_url' ), 5 );
    add_action( 'parse_request', array( __CLASS__, 'resolve_event_permalinks' ) );
    add_filter( 'get_canonical_url', array( __CLASS__, 'filter_canonical_url' ) );
    add_filter( 'wpseo_canonical', array( __CLASS__, 'filter_canonical_url' ) );
}

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