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

utility

Using Anonymous Functions for Filters and Actions

Chad Butler · Nov 12, 2018 · Leave a Comment

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

 

The more customization that you do when building a WordPress site, the more you will find that you have a lot of functions hooked to actions and filters.  Sometimes these functions might be quite simple, returning just a single line of text or replacing a single word.  Is there an easy way to make this more compact?

Yes, there is!  Here’s how:  Continue Reading →

Adding WP-Members Columns to the User Admin Panel

Chad Butler · Nov 27, 2013 ·

 

custom_columns

With both the general plugin and the various extensions, there are several columns that you may wish to add to the User Admin Panel.  In my user panel, I like to see the date a user registered, their last login, and when their subscription expires.  These custom columns involve data that is native to WordPress (user registered), from the User Tracking Extension (last login), and the PayPal Subscription Extension (expires).

This tutorial will show you some examples that you can use, but it can be easily adapted to other custom columns you might want to add as well.
Continue Reading →

Generic Header Login as a Widget

Chad Butler · Oct 12, 2013 ·

Using the generic header login HTML as a starting point, I created a header login widget.  This can be used in themes that have a header widget area where the sidebar widget might not fit well.

Consider this a framework to start from.  The code for the form as well as the CSS for styling for form can be customized to fit your theme’s needs. I’ve added lots of comments in the code snippets so you can follow how it is being done. 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 →

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