-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_email_template
github-actions[bot] edited this page Mar 18, 2026
·
1 revision
Filter the email template file path.
/**
* 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 );-
string$template_fileThe template file path. -
string$templateThe template name. -
int$user_idThe user ID. -
array$argsTemplate arguments.
\apply_filters( 'activitypub_email_template', $template_file, $template, $user_id, $args )Follow @activitypub.blog@activitypub.blog for updates and news.