- 
                Notifications
    You must be signed in to change notification settings 
- Fork 83
activitypub_the_content
        github-actions[bot] edited this page Oct 21, 2025 
        ·
        20 revisions
      
    Filter the content of the comment.
/**
 * Filter the content of the comment.
 *
 * @param string     $content 
 * @param WP_Comment $comment 
 * @return string The filtered value.
 */
function my_activitypub_the_content_callback( string $content, WP_Comment $comment ) {
    // Your code here.
    return $content;
}
add_filter( 'activitypub_the_content', 'my_activitypub_the_content_callback', 10, 2 );- 
string$contentThe content of the comment.
- 
WP_Comment$commentThe comment object.
\apply_filters( 'activitypub_the_content', $content, $post )\apply_filters( 'activitypub_the_content', $content, $comment )Follow @[email protected] for updates and news.