noptin_get_post_types()
Returns post types.
Source Source
File: includes/functions.php
function noptin_get_post_types() { $return = array(); $args = array( 'public' => true, 'show_ui' => true, ); $post_types = get_post_types( $args, 'objects' ); foreach ( $post_types as $obj ) { $return[ $obj->name ] = $obj->label; } unset( $return['attachment'] ); return $return; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.4 | Introduced. |