-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_the_content
github-actions[bot] edited this page Jul 30, 2025
·
17 revisions
Filters the post content after it was transformed for ActivityPub.
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 );
-
string
$content
The transformed post content. -
WP_Post
$post
The post object being transformed.
string
The filtered content of the comment.
\apply_filters( 'activitypub_the_content', $content, $comment )
\apply_filters( 'activitypub_the_content', $content, $post )
Follow @[email protected] for updates and news.