AnsPress_Comment_Hooks::comments_template_query_args( array $args )
Description #
Modify comment query args for showing pending comments to moderator.
Parameters #
- $argsarray (Required) Comment args.
Source #
File: includes/comments.php
public static function comments_template_query_args( $args ) {
global $question_rendered;
if ( true === $question_rendered && is_singular( 'question' ) ) {
return false;
}
if ( ap_user_can_approve_comment() ) {
$args['status'] = 'all';
}
return $args;
}
Expand full source code Collapse full source code View on GitHub: includes/comments.php:104
Add your comment