get_post_class Wordpress function


Description:

Retrieve the classes for the post div as an array.


Syntax:


Arguments:

(string|array) $class One or more classes to add to the class list.
(int) $post_id An optional post ID.


Return Type:

(array) Array of classes.


Define At:

wp-includes/post-template.php


Wordpress Reference URL:

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


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