Question : wordpress get post type
Answered by : kevin-x8phzry21f6x
// Retrieves the post type of the current post or of a given post.
get_post_type( int|WP_Post|null $post = null )
Source : https://developer.wordpress.org/reference/functions/get_post_type/ | Last Update : Fri, 26 Feb 21