• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter and Action Hooks » wpmem_email_headers

wpmem_email_headers

Description

This hook will allow you to filter the email headers that are sent through wp_mail.

Parameters

$default_headers
(mixed)(required) The email headers.

$toggle
(string)(optional) Toggle to determine what email is being generated (newreg|newmod|appmod|repass|admin).

Usage

add_filter( 'wpmem_email_headers', 'my_wpmem_html_email' );
function my_wpmem_html_email() {
    return "Content-Type: text/html" . "\r\n";
}

Changelog

Since versionĀ 2.7.4
Moved to /inc/email.php in 3.0.0
Moved to /inc/class-wp-members-email.php in 3.2.0
Moved to /includes/class-wp-members-email.php in 3.3.0

Source

wpmem_email_headers is located in /includes/class-wp-members-email.php

Primary Sidebar

Forgot?  Register

Topics

  • Actions
  • Basics
  • Blog
  • Design
  • Download Protect
  • Filters
  • How I Did It
  • MailChimp
  • Release Announcements
  • Shortcodes
  • Templates
  • Tips and Tricks
  • Uncategorized
  • User List
  • User Tracking
  • WooCommerce

Recent Posts

  • WP-Members Security 1.3.0
  • WP-Members 3.3.8 Update
  • Patch file available for password reset issues
  • Create specific download links for PDF (or other file types) when using Download Protect
  • WP-Members 3.3.7 Update Announcement

Tags

actions add_action basics bug-fix css demo email filters forms free get_avatar get_currentuserinfo hooks is_page is_user_logged_in mailchimp menus paypal registration release-notes security shortcodes str_replace template_redirect the_content tips user-list utility wp-filters wpdb wpmem_admin_after_block_meta wpmem_admin_block_meta_save wpmem_block wpmem_login_form wpmem_member_links wpmem_post_register_data wpmem_post_update_data wpmem_pre_register_data wpmem_register_data wpmem_register_form wpmem_register_form_rows wpmem_securify wpmem_sidebar_form wpmem_sidebar_status wp_mail

Ready to get started?

Join Today!

© 2021 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Refund Policy