Skip to content

activitypub_preview_template

github-actions[bot] edited this page Aug 29, 2025 · 13 revisions

Filter the template used for the ActivityPub preview.

Auto-generated Example

/**
 * Filter the template used for the ActivityPub preview.
 *
 * @param string $activitypub_template 
 * @return string The filtered value.
 */
function my_activitypub_preview_template_callback( string $activitypub_template ) {
    // Your code here.
    return $activitypub_template;
}
add_filter( 'activitypub_preview_template', 'my_activitypub_preview_template_callback' );

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