• 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 » Archives for Chad Butler

Chad Butler

WP-Members 2.9.7

Chad Butler · Nov 17, 2014 ·

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..

 

This update re-works a couple of behind-the-scenes functions; most notably the non-admin email function and the user export.

Email

The re-work of the wpmem_inc_regemail function doesn’t change much around the end result of the function (if at all), but makes a huge difference in the ability of the email content to be filtered and changed.  The new version of the function shifts around some of the steps into a more logical order in order to give a single filter hook for all emails that passes not only the email body content (as before), but also also the subject, the user ID, and a number of other settings, along with the WP-Members fields array and the user’s raw registration data.  This now gives you anything you need to make adjustments to the email based on what the user registered as, what their ID is, or any other criteria.  The new hook is wpmem_email_filter and it is located in wp-members-email.php.

User Export

The other big change was a new export function.  Previously, there were two separate functions – one for exporting just selected users and the other for exporting all users.  The new function combines these two processes since they were very similar.  There is a new filter hook in the process that will allow filtering certain arguments (settings) for the export process.  I’ll be documenting that later.  The process from start to finish with the new function is intended to provide the same end result as the previous two functions.  The new function is intended to be expandable and with the new filter hook for settings, it will be able to be called directly for specific exports if you want to do something custom.

Other Updates

Some other minor changes and fixes include:

  • Fixed the comparison logic for the CSS class for checkbox fields in the wpmem_create_formfield function.
  • Updated native registration function for use on localized sites.
  • Added redirect_to parameter in the registration form, similar to login.
  • Fixed plugin admin page for multisite, if user has theme options edit capabilities.

Customized sidebar widget

Chad Butler · Nov 11, 2014 ·

I often get questions about the filters that I use on this site for the sidebar widget. This post has the exact custom filters that I use, copy/pasted from my own functions.php file.

For those with questions about how the sidebar widget is styled, that is all CSS and a lot of it is from the Genesis Theme Framework. This post does not address that. What it does address is how I add the gravatar image and change the log out link to include “edit profile”. Continue Reading →

Make WP-Members fields in the users screen sortable

Chad Butler · Nov 6, 2014 ·

Here is a code snippet that you can use to make all of the WP-Members custom fields sortable in the Users > All Users screen.

To use this code, add the entire code snippet to your functions.php file. Any field in the WP-Members Fields tab that you have selected to display on the Users Screen will be sortable.

Continue Reading →

Set user expiration to a fixed date

Chad Butler · Nov 3, 2014 ·

The PayPal Subscription Extension operates by setting a user’s expiration date to today + the subscription period. For example, if the subscription period is 1 year, the expiration date will be one year from now.

But what if you want all users to expire/renew on the same day of the year? Or if you would like to just set a hard date far out in the future?  Yes, there is a way you can do such things.

There is an action hook that comes just after the user’s expiration date is automatically set – wpmem_exp_after_set_exp.  Using this action, you can create a custom function to change the expiration date that is automatically set by the extension to whatever you want.  Here are three simple examples. Continue Reading →

Set user forum access when using bbPress with the PayPal subscription extension

Chad Butler · Nov 2, 2014 ·

When using WP-Members with bbPress and the WP-Members PayPal subscription extension, there are some additional considerations for your setup to integrate these plugins smoothly and restrict forum access for paid users who have a valid expiration date.  

Continue Reading →
  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 45
  • Page 46
  • Page 47
  • Page 48
  • Page 49
  • Interim pages omitted …
  • Page 81
  • 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