AnsPress_Hooks::widget_comments_args( array $args )

Description #

Filter recent comments widget args.

Exclude AnsPress comments from recent commenst widget.

Parameters #

  • $args
    array (Required) Comments arguments.

Source #

File: includes/hooks.php

	public static function widget_comments_args( $args ) {
		$args['type__not_in'] = [ 'anspress' ];
		return $args;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment