Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress get post type

// Retrieves the post type of the current post or of a given post.
get_post_type( int|WP_Post|null $post = null )
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #post #type
ADD COMMENT
Topic
Name
4+2 =