apply_filters ( 'jetpack_api_include_comment_types_count', array Array )

Include certain comment types in comment counts in the REST API.<p>Note: the default array of comment types includes an empty string, to support comments posted before WP 5.5, that used an empty string as comment type.</p>

Source file: class.json-api.php

View in GitHub

Parameters

Array

(array) Array of comment types to include (default: ’comment’, ’pingback’, ’trackback’)


Changelog

Since: Jetpack 11.1


Notes

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s