Skip to content

activitypub_the_content

github-actions[bot] edited this page Aug 1, 2025 · 14 revisions

Filters the post content after it was transformed for ActivityPub.

Auto-generated Example

/**
 * Filters the post content after it was transformed for ActivityPub.
 *
 * @param string  $content 
 * @param WP_Post $post 
 * @return string The filtered content of the comment.
 */
function my_activitypub_the_content_callback( string $content, WP_Post $post ) {
    // Your code here.
    return $content;
}
add_filter( 'activitypub_the_content', 'my_activitypub_the_content_callback', 10, 2 );

Parameters

  • string $content The transformed post content.
  • WP_Post $post The post object being transformed.

Returns

string The filtered content of the comment.

Files

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

← All Hooks

Users

Developers

Clone this wiki locally