LLMS_Post_Types::register_post_type( string $name, array $data )
Register a custom post type Automatically checks for duplicates and filters data
Description Description
Parameters Parameters
- $name
-
(string) (Required) post type name
- $data
-
(array) (Required) post type data
Return Return
(void)
Source Source
File: includes/class.llms.post-types.php
public static function register_post_type( $name, $data ) { if ( ! post_type_exists( $name ) ) { $filter_name = str_replace( 'llms_', '', $name ); register_post_type( $name, apply_filters( 'lifterlms_register_post_type_' . $filter_name, $data ) ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: