• 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

WP-Members 3.2.6

Chad Butler · Mar 27, 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..

 

WP-Members 3.2.6 is a security release with some additional updates.  Because this includes a security update, it is recommended that you take steps to update from previous versions.

Here is an overview of what is included in this update:

Security

There is a potential exploit with regard to the password change. It’s a limited exploit, but I feel any potential risk no matter how small needs to be addressed and closed.  In this case, the fix is twofold and completely closes the discovered exploit and goes beyond that requirement.  The function for password change can only be fired if the user is logged in.  Additionally, a nonce has been added to the plugin’s short form (used for login, password change, password reset, and forgot username forms).  Nonces were made a default of the long form in the previous version (it was previously optional). So this version adds that to the short form.

API Updates

Some of the functions in the plugin’s API were updated and improved.

  • wpmem_user_data() – Added “all” as an argument so the function can return all user meta or just WP-Members fields only.
  • wpmem_set_user_product() – Added “date” argument to specify a specific expiration date. Default remains “false” and will set user expiration from the current date.
  • wpmem_admin_after_profile_table & wpmem_user_after_profile_table actions – These fire after the HTML table in the admin/dashboard profile and can be used for adding to what is displayed after WP-Members custom fields.
  • wpmem_login_form_rows filter – Added $arr argument passed to the filter. This contains an array containing all of the setup for the form (primarily what is filterable through wpmem_login_form_args, but here it is available if needed for determining how you will filter the rows array).

Other Improvements

The logic for the function behind the [wpmem_field] had a ground-up rebuild.  This will make the function more efficient and also easier to maintain in the future as new features are added.  (Note: While this is not a “feature,” it is noted here so that if you experience any unexpected behavior in the [wpmem_field] shortcode following the upgrade, please let me know about it so it can be determined if it is related to the update.)

The registration form field validation was updated to evaluate required fields as “not null” instead of false/empty.  This allows for “0” values which would previously have been evaluated as “false” and thus lead to the form returning an empty required field error if a “0” was entered.  Since the current logic has been in place for almost 10 years, I’m surprised this hasn’t actually come up before, but with the addition of support for the HTML number field type, I did have a user indicate that they needed their number field to accept a minimum value of “0” – so now you can do that.

Added file post ID to the post_data array.  The post_data array is passed through various filters and actions during the registration process.  In the case of a file field type (“file” or “image”), this array of data now includes the post ID for the attachment.  While this can be used for various things, the primary reason for inclusion was being able to easily find a file uploaded during registration for attachment to an email (i.e. sent as an attachment to the admin notification).  While that could previously be done without this addition, the change makes it much simpler and eliminates any setup steps – the post ID needed is included in the data array.

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

    • « 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