Skip to content

activitypub_hide_comments_for

github-actions[bot] edited this page Dec 18, 2025 · 1 revision

Filters the list of post types to hide comments for.

Auto-generated Example

/**
 * Filters the list of post types to hide comments for.
 *
 * @param Activitypub\string[] $post_types 
 * @return Activitypub\string[] The filtered value.
 */
function my_activitypub_hide_comments_for_callback( Activitypub\string[] $post_types ) {
    // Your code here.
    return $post_types;
}
add_filter( 'activitypub_hide_comments_for', 'my_activitypub_hide_comments_for_callback' );

Parameters

  • Activitypub\string[] $post_types Array of post type names to hide comments for.

Files

\apply_filters( 'activitypub_hide_comments_for', $post_types )

← All Hooks

Users

Developers

Clone this wiki locally