-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_extra_field_content
github-actions[bot] edited this page Aug 1, 2025
·
8 revisions
Filters the content of an extra field.
/**
* Filters the content of an extra field.
*
* @param string $content
* @param WP_Post $post
* @return string The filtered value.
*/
function my_activitypub_extra_field_content_callback( string $content, WP_Post $post ) {
// Your code here.
return $content;
}
add_filter( 'activitypub_extra_field_content', 'my_activitypub_extra_field_content_callback', 10, 2 );
-
string
$content
The content. -
WP_Post
$post
The post.
\apply_filters( 'activitypub_extra_field_content', $content, $post )
Follow @[email protected] for updates and news.