crp_post_class
Filter the classes added to the div wrapper of the Contextual Related Posts.
Type: filter
Since: 3.2.0
Source: includes/frontend/class-display.php line 193
Parameters
| Type | Name | Description |
|---|---|---|
string | $post_classes | Post classes string. |
array | $args | Arguments array. |
\WP_Post | $post | \WP_Post object. |
Usage
add_filter( 'crp_post_class', function($post_classes, $args, $post) {
// ...
return $post_classes;
} );