Skip to content

activitypub_extra_field_content

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

Filters the content of an extra field.

Auto-generated Example

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

Parameters

  • string $content The content.
  • WP_Post $post The post.

Files

\apply_filters( 'activitypub_extra_field_content', $content, $post )

← All Hooks

Users

Developers

Clone this wiki locally