Skip to content

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.

Auto-generated Example

/**
 * 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' );

Parameters

  • array $result Array of comment type data with slug, label, and singular.

Files

\apply_filters( 'activitypub_stats_comment_types', $result )

← All Hooks

Users

Developers

Clone this wiki locally