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



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


Since: Jetpack 11.1


Have a note to contribute?

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

You are commenting using your 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