Skip to content

activitypub_preview_template

github-actions[bot] edited this page Jul 29, 2025 · 15 revisions

Filter the template used for the ActivityPub preview.

Auto-generated Example

add_filter(
   'activitypub_preview_template',
    'my_activitypub_preview_template_callback'
);

function my_activitypub_preview_template_callback( string $activitypub_template ) {
    // Your code here.
    return $activitypub_template;
}

Parameters

  • string $activitypub_template Absolute path to the template file.

Files

apply_filters( 'activitypub_preview_template', ACTIVITYPUB_PLUGIN_DIR . '/templates/post-preview.php' )

← All Hooks

Users

Developers

Clone this wiki locally