Skip to content

activitypub_the_content

github-actions[bot] edited this page Aug 18, 2025 · 10 revisions

Filter the content of the comment.

Auto-generated Example

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

Parameters

  • string $content The content of the comment.
  • WP_Comment $comment The comment object.

Files

\apply_filters( 'activitypub_the_content', $content, $post )
\apply_filters( 'activitypub_the_content', $content, $comment )

← All Hooks

Users

Developers

Clone this wiki locally