Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post-template.php | apply_filters | 598 | /** * Filters the list of CSS class names for the current post. * * @since 2.7.0 * * @param string[] $classes An array of post class names. * @param string[] $class An array of additional class names added to the post. * @param int $post_id The post ID. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string[] | $taxonomies | List of all taxonomy names to generate classes for. |
int | $post_id | The post ID. |
string[] | $classes | An array of post class names. |
string[] | $class | An array of additional class names added to the post. |