LLMS_Post_Types::init()

Constructor


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.post-types.php

40
41
42
43
44
45
46
47
48
49
50
51
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 );
 
}

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.2 Add filter to deregister protected post types.
3.0.4 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.