Skip to content

activitypub_preview_template

github-actions[bot] edited this page Jul 23, 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' )

Hooks

Users

Developers

Clone this wiki locally