Skip to content

activitypub_preview_template

github-actions[bot] edited this page Aug 7, 2025 · 15 revisions

Filter the template used for the ActivityPub preview.

Auto-generated Example

add_filter(
   'activitypub_preview_template',
    function( 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