get_post_type Wordpress function


Description:

Retrieve the post type of the current post or of a given post.


Syntax:


Arguments:

(mixed) $post Optional. Post object or post ID.


Return Type:

(bool|string) post type or false on failure.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_post_type


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×