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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 #
Version | Description |
---|---|
2.6.0 | Introduced. |