-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_stats_comment_types
github-actions[bot] edited this page Mar 18, 2026
·
1 revision
Filter the comment types tracked in statistics.
Allows adding additional comment types to be tracked in the statistics dashboard.
/**
* Filter the comment types tracked in statistics.
*
* Allows adding additional comment types to be tracked
* in the statistics dashboard.
*
* @param array $result
* @return array The filtered value.
*/
function my_activitypub_stats_comment_types_callback( array $result ) {
// Your code here.
return $result;
}
add_filter( 'activitypub_stats_comment_types', 'my_activitypub_stats_comment_types_callback' );-
array$resultArray of comment type data with slug, label, and singular.
\apply_filters( 'activitypub_stats_comment_types', $result )Follow @activitypub.blog@activitypub.blog for updates and news.