Customize WordPress Emails and Alerts 1.10.2 has 21 actions and 63 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Customize WordPress Emails and Alerts fires an action
add_action( 'bnfw_after_notification_disabled_field', function( $setting ) {
// Your code runs here.
}, 10, 1 );
// Change a value Customize WordPress Emails and Alerts is about to use
add_filter( 'bnfw_notification_disabled', function( $value, $id, $setting ) {
// Change $value here.
return $value;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
bnfw_notification_disabled
filter/** * BNFW - Whether notification is disabled? */ apply_filters( 'bnfw_notification_disabled', ( 'true' === $setting['disabled'] ), $id, $setting ); -
/** * Trigger User Role Changed - For User notification. */ apply_filters( 'bnfw_trigger_admin-role_notification', true, $notification, $new_role, $old_roles, $user_id ); -
/** * Trigger User Role Changed - For User notification. */ apply_filters( 'bnfw_trigger_user-role_notification', true, $notification, $new_role, $old_roles, $user_id ); -
bnfw_addon_licenses
filter/** * Filters the list of BNFW premium add-ons to license via the SDK. */ apply_filters( 'bnfw_addon_licenses', $addons ); -
/** * Fires after notification meta setting fields. */ do_action( 'bnfw_after_notification_disabled_field', $setting ); -
bnfw_after_setting_fields
action/** * Fires after render all notification setting fields. */ do_action( 'bnfw_after_setting_fields', $setting ); -
/** * Filter to apply before send notification to user. */ apply_filters( 'bnfw_can_send_user_locale_email', true, $id, $email, $setting, $prepare_subject, $prepare_message, $headers ); -
/** * Filters the override the notification settings. */ apply_filters( 'bnfw_change_password_email_message_notification_settings', $setting, $user_data ); -
bnfw_from_field
filter/** * Filter Email From Field. */ apply_filters( 'bnfw_from_field', $default_from_field, $setting, $id, $emails['to'] ); -
/** * Filters the contents of the email sent when core updated. */ apply_filters( 'bnfw_handle_core_updated_notification', $setting, $email_data, $emails, $type ); -
/** * Filters the text of the email sent with a personal data export file. */ apply_filters( 'bnfw_handle_data_export_email_content_settings', $setting, $email_data ); -
/** * Filters the subject of the email sent when an erasure request is completed. */ apply_filters( 'bnfw_handle_erasure_complete_email_notification_settings', $setting, $email_data ); -
/** * Filters the override the notification settings. */ apply_filters( 'bnfw_handle_filtered_data_notification_settings', $setting, $email_data, $extra_data ); -
/** * Filters the body of the user request confirmation email. */ apply_filters( 'bnfw_handle_user_confirmed_action_notification_settings', $setting, $email_data ); -
/** * Filters the text of the email sent when an account action is attempted. */ apply_filters( 'bnfw_handle_user_request_notification_settings', $setting, $email_data ); -
/** * Kses message allowed tags. */ apply_filters( 'bnfw_kses_message_allowed_tags', $allowed_tags ); -
bnfw_localize_script
filter/** * Filter the localized array that is sent to scripts. */ apply_filters( 'bnfw_localize_script', $strings ); -
bnfw_mail_headers
filter/** * Filter out mail headers. */ apply_filters( 'bnfw_mail_headers', $headers, $emails ); -
/** * Invoked while displaying a custom column in notification table. */ do_action( 'bnfw_notification_table_column', $column, $post_id ); -
/** * Invoked while displaying a custom column in the notification table. */ apply_filters( 'bnfw_notification_table_columns', $columns ); -
bnfw_reply_email_field
filter/** * Filter Reply Email Field. */ apply_filters( 'bnfw_reply_email_field', $setting['reply-email'], $setting, $id, $emails['to'] ); -
bnfw_reply_name_field
filter/** * Filter Reply Name Field. */ apply_filters( 'bnfw_reply_name_field', $setting['reply-name'], $setting, $id, $emails['to'] ); -
/** * Trigger User Role Changed - For User notification. */ apply_filters( 'bnfw_trigger_admin-role-added_notification', true, $notification, $new_roles, $old_roles, $user_id ); -
/** * Filter to apply before send notification to user. */ apply_filters( 'bnfw_trigger_comments_reply_notification', true, $comment_id, $setting, $parent_comment ); -
bnfw_trigger_insert_post
filter/** * Whether to trigger insert post hook. */ apply_filters( 'bnfw_trigger_insert_post', false, $post_id, $update ); -
/** * Trigger User Role Changed - For User notification. */ apply_filters( 'bnfw_trigger_user-role-added_notification', true, $notification, $new_roles, $old_roles, $user_id ); -
/** * Whether to trigger welcome email notification or not. */ apply_filters( 'bnfw_trigger_welcome-email_notification', true, $setting, $user, $password_url ); -
/** * Filters the subject of the email sent when a change of user email address is * attempted. */ apply_filters( 'bnfw_user_on_email_change_request_subject', $args, $setting ); -
/** * Filters the override notification settings. */ apply_filters( 'bnfw_user_on_email_changing_notification_settings', $setting, $user, $new_user_details ); -
/** * Filters the subject of the password reset email. */ apply_filters( 'bnfw_user_retrieve_password_title', $title, $setting, $user_login, $user_data ); -
/** * Filters the Send Password Changed email. */ apply_filters( 'bnfw_user_send_password_changed_email', $setting, $user ); -
get_edit_post_link
filter/** * Filters the post edit link. */ apply_filters( 'get_edit_post_link', $link, $post->ID, $context ); -
retrieve_password_key
action/** * This action is documented in wp-login.php */ do_action( 'retrieve_password_key', $user->user_login, $key ); -
/** * Filters the contents of the new user notification email sent to the site * admin. */ apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname ); -
do_action( 'bnfw_after_notification_options', 'post', 'Post', $setting ); -
do_action( 'bnfw_after_notification_options_optgroup', 'post', 'Post', $setting ); -
apply_filters( 'bnfw_email_dropdown_placeholder', __( 'Select User Roles / Users', 'bnfw' ) ); -
bnfw_non_wp_emails
filterapply_filters( 'bnfw_non_wp_emails', array(), $non_wp_users, $post_id ); -
bnfw_notification_message
filterapply_filters( 'bnfw_notification_message', $message, $setting ); -
apply_filters( 'bnfw_trigger_user-login_notification', true, $setting, $user ); -
apply_filters( 'bnfw_user_role_changed_email_message', $message, $setting ); -
the_content
filterapply_filters( 'the_content', $post_content ); -
do_action( 'bnfw_after_additional_email_fields', $setting ); -
do_action( 'bnfw_after_default_notifications', $setting ); -
do_action( 'bnfw_after_default_notifications_optgroup', $setting ); -
do_action( 'bnfw_after_disable_current_user', $setting ); -
bnfw_after_email_formatting
actiondo_action( 'bnfw_after_email_formatting', $setting ); -
bnfw_after_enqueue_scripts
actiondo_action( 'bnfw_after_enqueue_scripts' ); -
bnfw_after_metaboxes
actiondo_action( 'bnfw_after_metaboxes', $this->read_settings( $post->ID ) ); -
do_action( 'bnfw_after_notification_dropdown', $setting ); -
do_action( 'bnfw_after_notification_optgroups', $setting ); -
bnfw_after_only_post_author
actiondo_action( 'bnfw_after_only_post_author', $setting ); -
bnfw_after_send_to
actiondo_action( 'bnfw_after_send_to', $setting ); -
do_action( 'bnfw_after_transactional_notifications', $setting ); -
do_action( 'bnfw_after_transactional_notifications_optgroup', $setting ); -
bnfw_after_user_dropdown
actiondo_action( 'bnfw_after_user_dropdown', $setting ); -
bnfw_before_message_body
actiondo_action( 'bnfw_before_message_body', $setting ); -
bnfw_can_send_email
filterapply_filters( 'bnfw_can_send_email', true, $setting, $emails, $subject, $message, $headers ); -
apply_filters( 'bnfw_comment_reply_email_message', $message, $setting ); -
bnfw_emails
filterapply_filters( 'bnfw_emails', $emails, $setting, $id ); -
bnfw_get_notifications_args
filterapply_filters( 'bnfw_get_notifications_args', $args, $types, $exclude_disabled ); -
bnfw_get_notifications_posts
filterapply_filters( 'bnfw_get_notifications_posts', $posts, $args, $types, $exclude_disabled ); -
bnfw_insert_post_themes
filterapply_filters( 'bnfw_insert_post_themes', array( 'P2', 'Syncope' ) ); -
apply_filters( 'bnfw_is_notification_disabled_args', $args, $type ); -
apply_filters( 'bnfw_is_notification_disabled_posts', $posts, $args, $type ); -
apply_filters( 'bnfw_is_send_only_once_notification', true, $notification_data ); -
bnfw_members_sanitize_role
filterapply_filters( 'bnfw_members_sanitize_role', str_replace( ' ', '_', $_role ), $role ); -
apply_filters( 'bnfw_notification_dropdown_posttypes', get_post_types( array( 'public' => true, '_builtin' => false, ), 'names' ) ); -
apply_filters( 'bnfw_notification_dropdown_taxonomies', get_taxonomies( array( 'public' => true, '_builtin' => false, ), 'objects' ) ); -
bnfw_notification_name
filterapply_filters( 'bnfw_notification_name', $name, $slug ); -
bnfw_notification_setting
filterapply_filters( 'bnfw_notification_setting', $setting, $_POST ); -
apply_filters( 'bnfw_notification_setting_fields', $default ); -
apply_filters( 'bnfw_registration_email_message', $message, $setting ); -
bnfw_shortcodes
filterapply_filters( 'bnfw_shortcodes', $message, $notification, $extra_data, $this ); -
bnfw_shortcodes_post
filterapply_filters( 'bnfw_shortcodes_post', $message, $post_id ); -
bnfw_shortcodes_taxonomy
filterapply_filters( 'bnfw_shortcodes_taxonomy', $message, $taxonomy, $term_id ); -
bnfw_shortcodes_user
filterapply_filters( 'bnfw_shortcodes_user', $message, $user_id, $prefix ); -
bnfw_test_email_message
filterapply_filters( 'bnfw_test_email_message', $message, $setting ); -
bnfw_to_emails
filterapply_filters( 'bnfw_to_emails', $emails['to'], $setting, $id ); -
apply_filters( 'bnfw_trigger_new-user_notification', true, $setting, $user ); -
bnfw_validation_element
filterapply_filters( 'bnfw_validation_element', '#users-select' ); -
apply_filters( 'export_downloadable_url_query', $query, $request_id ); -
apply_filters( 'export_downloadable_url_return', $dl_url ); -
wp_privacy_export_expiration
filterapply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
Generated from Customize WordPress Emails and Alerts's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: