-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_the_content
github-actions[bot] edited this page Aug 18, 2025
·
10 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
$content
The content of the comment. -
WP_Comment
$comment
The comment object.
\apply_filters( 'activitypub_the_content', $content, $post )
\apply_filters( 'activitypub_the_content', $content, $comment )
Follow @[email protected] for updates and news.