LLMS_Post_Types::init()
Constructor
Contents
Return Return
(void)
Source Source
File: includes/class.llms.post-types.php
public static function init() {
add_action( 'init', array( __CLASS__, 'add_membership_restriction_support' ) );
add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 );
add_action( 'init', array( __CLASS__, 'register_post_statuses' ), 9 );
add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 5 );
add_filter( 'wp_sitemaps_post_types', array( __CLASS__, 'deregister_sitemap_post_types' ) );
add_action( 'after_setup_theme', array( __CLASS__, 'add_thumbnail_support' ), 777 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.3.2 | Add filter to deregister protected post types. |
| 3.0.4 | Unknown. |
| 1.0.0 | Introduced. |