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

tips

Removing line breaks and tabs from generated HTML for easier str_replace

Chad Butler · Jul 10, 2013 ·

For WP-Members users who want to do heavy customization to the plugin’s default forms, the PHP str_replace function can be both your best friend and your arch nemesis.  Continue Reading →

Email users when a new post is published – opt-in/opt-out version

Chad Butler · Jun 9, 2013 ·

This code snippet is an extension of the email users when a new post is published snippet.  Like that snippet, this one comes from user requests.

The difference here is that we will only email users who have requested specifically to be notified of new posts, and we’ll allow them to opt-out of that process at a later date by updating their profile.  Continue Reading →

Clean up the user profile of unused unwanted fields

Chad Butler · May 3, 2013 ·

The WP-Members plugin does not exercise any control over WordPress native fields as far as removing them from the User Profile.  The plugin only determines if you are using these in the front-end elements of the plugin (such as front-side registration and front-side user profile).  If you are not using a handful of these fields and would like to remove them from the User Profile (yoursite.com/wp-admin/user-edit.php), you can do that with a little bit of scripting in your functions.php file.  Here are some examples. Continue Reading →

Displaying the post access level when using the PayPal addon

Chad Butler · May 3, 2013 ·

Here is a handy function that I wrote to display the post access level when a user is not logged in OR they have registered and logged in, but have not yet completed payment.

If you use the PayPal addon module, you may find this useful for all kinds of different ideas.  The concept is easily adapted from what is displayed here.  

Continue Reading →

Utility function to determine if a user registration is pending with the PayPal addon

Chad Butler · May 3, 2013 ·

For users that are diving into customizing their installation and using the PayPal addon, here is a utility function that will allow you to determine if a registered user is pending (i.e. they have not yet paid).  This can be useful for content display that you may intend for any registered user regardless of payment status, or some other use.

I use this function on the rocketgeek.com site to display information on which posts are free and which a only for paid premium users.  This information displays if the user is not logged in OR if they registered and are logged in but did not yet complete payment.  Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Interim pages omitted …
  • Page 16
  • 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