Skip to content

Function

Filter the comments.

tml_filter_comments_array( array $comments )

Parameters

$comments array
The comments.

Return

array The comments.

Source

function tml_filter_comments_array( $comments ) {
    if ( tml_is_action() ) {
        return array();
    }
    return $comments;
}

Uses

Changelog

VersionDescription
7.0.10 Introduced.