Skip to content

activitypub_email_template

github-actions[bot] edited this page Mar 18, 2026 · 1 revision

Filter the email template file path.

Auto-generated Example

/**
 * Filter the email template file path.
 *
 * @param string $template_file 
 * @param string $template 
 * @param int    $user_id 
 * @param array  $args 
 * @return string The filtered value.
 */
function my_activitypub_email_template_callback( string $template_file, string $template, int $user_id, array $args ) {
    // Your code here.
    return $template_file;
}
add_filter( 'activitypub_email_template', 'my_activitypub_email_template_callback', 10, 4 );

Parameters

  • string $template_file The template file path.
  • string $template The template name.
  • int $user_id The user ID.
  • array $args Template arguments.

Files

\apply_filters( 'activitypub_email_template', $template_file, $template, $user_id, $args )

← All Hooks

Users

Developers

Clone this wiki locally