learndash_custom_post_types

apply_filters( 'learndash_custom_post_types',  array $post_types )

Filters the list of custom post types.


Description #


Parameters #

$post_types

(array) An array of Post type list.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_custom_post_types filter.
 */
add_filter(
	'learndash_custom_post_types',
	function( $post_types ) {
		// May add any custom logic using $post_types.

		// Always return $post_types.
		return $post_types;
	}
);
 

Changelog #

Changelog
Version Description
2.6.0 Introduced.