• Skip to primary navigation
  • Skip to main content

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
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Search for "short code"

Search Results for: short code

Email Format

WP-Members relies on WP’s wp_mail() function to send email.  It’s important to understand a few things about wp_mail():

  • By default, all emails are plain text.
  • You can send HTML formatted email by changing the content type.
  • The default “from” address is WP’s default – wordpress@yourdomain.com.
  • The absolute best thing you can do for yourself to solve all email problems is to use SMTP to send your email!

Sending HTML Email

If you want to send HTML formatted email, you need to change the content type.

The plugin includes a setting in the Emails tab to automatically send emails as HTML format. (NOTE: When sending HTML formatted email, URLs are not “automatically” made clickable. You need to apply proper HTML markup for links and any other formatted text.)

Change ALL WP emails to HTML format

Use the wp_mail_content_type filter to set the content type to “text/html”:

add_filter( 'wp_mail_content_type', 'my_set_mail_content_type' );
function my_set_mail_content_type( $content_type ) {
    return 'text/html';
}

Change only WP-Members generated emails to HTML format

The wpmem_email_headers filter allows you to filter the email headers. Use that to set the email type as “text/html”:

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

Adding one of above filter function to your functions.php file or a custom plugin file will allow you to send HTML formatted emails.  Now you can use HTML in the email content in the plugin’s email management tab (be sure to include appropriate shortcodes for data being sent).  There is more information on how to use code snippets from this site here.

WP-Members 3.2.5

Chad Butler · Jan 3, 2019 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

A new year, and a fresh upgrade for WP-Members!  Version 3.2.5 is a feature release with some fixes.  Continue Reading →

WP-Members PayPal Subscriptions

The PayPal Subscriptions plugin allows WP-Members to limit a user to a specific subscription period and allows you to charge for subscriptions using PayPal’s IPN.

This extension is available with the WP-Members Pro Bundle or individually.

Get the Plugin

WP-Members PayPal Subscriptions is a premium plugin available in the store.

Best Value: this plugin is included in the WP-Members Pro Bundle package.

  • Sale! Pro Bundle

    Pro Bundle

    From $125.00 / year
    Select options This product has multiple variants. The options may be chosen on the product page
  • PayPal Subscriptions

    PayPal Subscriptions

    From $49.00 / year
    Select options This product has multiple variants. The options may be chosen on the product page

Documentation

  • Registration and Payment Flow
  • Setup
  • Offering a Trial Period
  • IPN Log File
  • Manage Users
  • PayPal IPN Configuration
  • PayPal Developer Tools
  • Filter and Action Hooks
  • Templates
  • Customization Examples
  • Change Log
  • FAQs and Troubleshooting
  • Settings

    Once the tracking extension is installed, it will begin collecting data when logged in users visit the site.

    Site usage data can be viewed in two places:

    1. At the bottom of the User Profile
    2. In the Dashboard > User Tracking Page

    When viewing data in the user profile, the stats will show the time stamp of the user’s last login as well as the last 5 pages visited (this can be increased or decreased with the wpmemstat_max_per_user filter).  Fields displayed can be changed with the wpmemstat_display_fields filter.  The bottom of the list will include a link to the dashboard to view the full list of stats for that particular user.

     

    tracking_3

     

    When viewing stats in the dashboard, you will see the same fields that are displayed in the user profile.  These can be filtered with wpmemstat_display_fields.  The number of stats per page can be filtered with wpmemstat_max_per_page.  You can view all stats of select a specific user from the dropdown list. The wpmemstat_user_droplist filter allows you to display the values in the dropdown by either user_login (the username) or displayname (if you are using a different value for displayname than username).

    tracking_2

     

    You can exclude a user from stat collection (such as any admins) with the wpmemstat_user_exclude filter.

    The extension adds a tab to the WP-Members plugin options called “Tracking”.  Under this tab you can set what happens when you either delete a user or delete (not just deactivate) the extension.  On user delete, you can select to delete any stats related to that user.  You can also set the extension to remove the database table in which stats are stored if you delete the extension.  Please note that using either of these two options deletes that data – there is no way to get it back, so keep a database backup if you think you will need it.

    tracking_1

    Options

    Login Options

    Prevent Concurrent Logins

    This setting will prevent any login from being used in more than one browser concurrently.  This includes additional computers and locations.  The primary purpose of this options is to prevent login sharing.  While it is impossible to prevent login sharing 100%, this makes it more difficult since one user logging in will automatically log that username out in any other existing session.

    When this setting is enabled, you can choose from two possible options:

    • Log out first session – logs out the original session, allowing the current login to proceed.
    • Prevent current session – prevents the current login and leaves the original session intact.

    Enable Login Form Captcha

    While captcha in the login form is not necessarily recommended, it is one of the most requested features.  Enabling the captcha setting will utilize whatever captcha is set in the main WP-Members Options.

    Track Failed Logins

    This option will track all failed logins.  You also have the option to be notified as the admin when a failed login occurs.

    Notify Admin on Failed Login Attempt

    This allows you to notify the site admin via email when there is a failed login attempt. The email message can be edited in the WP-Members Emails tab under the heading “Failed login admin notification”.

    The email allows for some additional email shortcodes that can be used (these are in the default demo message, which you can customize as needed):

    • [user_ip]
    • [blogname]
    • [timestamp]
    • [username]
    • [error_code]
    • [error_message]

    Enable Lockout for Failed Logins

    Adds additional settings to lock out a user after too many failed login attempts.  Prevents brute force login attempts.

    Password Options

    Require Random Passwords to be Changed on First Use

    This setting will set a flag when a random password is generated so that when a user logs in with that random password, they will be prompted to change it before continuing to use the site.  This is implemented it two places.  First, in the plugin’s default configuration where a random password is sent to the user upon registration; and second, if a forgotten password is reset.  This adds a layer of security by requiring the user to set a password themselves once they have logged in with the random password.

    Require Passwords to be Changed Every X Period

    Similar to the above process, if a password is expired, the user will be required to change it to continue using the site.  You can specify the time period required for password expiration.  When this setting is used, anytime the user changes their password (or if a password is randomly set via registration or forgotten password reset), a new timestamp is set.  Anytime the user logs into the site, the timestamp of the last password change is checked against the expiration period.

    Previous Passwords

    This setting restricts a user from re-using passwords.  You may specify the number of previous passwords recorded (i.e. password cannot be one of the 5 most recent passwords used).

    Minimum password strength

    Enabling this option will include the WordPress password strength meter in the form. The form will not be able to submit until the password meets the selected minimum strength.

    When used, the meter will be included wherever the password is entered.  The primary location for this is in the change password form.  But, if a password field is used in the registration form to allow the user to set their own password at registration, the password meter will also be included there.

    IMPORTANT: If using a password field in the registration form along with this setting, you MUST include a confirm password field for the password meter to work correctly.

    The password strength meter is WordPress’ internal strength meter.  It uses the zxcvbn library.  While it is somewhat technical, the article here gives a good description of the zxcvbn library’s concepts and a description of what is insecure about LUDS (lowercase, uppercase, digit, special character) password models.  There is a demo here that shows you how various password compare using the model. (That’s a demo of the password strength library, not the plugin’s use of it. If you want to know how it works, it’s the same meter that can be found in the WordPress user profile edit screen.)

    Include generate password button

    This setting adds a generate password button to the form. It will remove the confirm password field. You may need to apply CSS to adjust it to match your form style. You can do this with the WordPress Customizer.

    Confirm Current Password

    When this setting is enabled, the change password form will include a confirm current password field.  The user will be required to enter their current password in order to change the password.

    Anti-Spam Options

    Enable Registration Form Honey Pot

    A honey pot is a form field that is hidden from human users.  To a bot or an automated registration, this form field will look like any other form field to be completed.  Bots will generally enter data in a honey pot field.  When the registration form is submitted and data validated, if the honey pot contains an entry, an error is returned preventing the registration from occurring.  A honey pot is the most effective method of stopping registration spam – more effective than CAPTCHAs.  It has the added benefit of being hidden from users and thus presents a far better user experience than including a CAPTCHA.

    For general information on what a honey pot does and how it works, see this post.

    StopForumSpam and Akismet APIs

    Enabling either of these options will run the username, email address, and IP address of each registration through that system’s API to determine whether it is likely spam.  This, coupled with a honey pot is far more effective than a captcha on the registration form.

    Delete database tables

    When this is enabled, any custom database tables the plugin installs will be removed when the uninstall routine is run (“delete” in the WP plugin screen). This removes the failed login tracking and login lockout tables.

    • « Go to Previous Page
    • Page 1
    • Interim pages omitted …
    • Page 22
    • Page 23
    • Page 24
    • Page 25
    • Page 26
    • Interim pages omitted …
    • Page 53
    • Go to Next Page »

    Ready to get started?

    Join Today!

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

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