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


Top ↑

Return Return

(void)


Top ↑

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 ) );
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: