-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_before_get_content
github-actions[bot] edited this page Aug 7, 2025
·
7 revisions
Provides an action hook so plugins can add their own hooks/filters before AP content is generated.
Example: if a plugin adds a filter to the_content
to add a button to the end of posts, it can also remove that filter here.
add_filter(
'activitypub_before_get_content',
function( WP_Post $post ) {
// Your code here.
return $post;
}
);
-
WP_Post
$post
The post object.
\do_action( 'activitypub_before_get_content', $post )
Follow @[email protected] for updates and news.