Recent

crp_post_classfilter

crp_post_class

Filter the classes added to the div wrapper of the Contextual Related Posts.

Type: filter
Since: 2.2.3
Source: includes/frontend/class-display.php line 193

Changelog

Version Description
3.2.0 Added $post
2.9.3 Added $args
2.2.3 Introduced.

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;
} );