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

actions

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 →

Send new user activation link with manual admin approval

Chad Butler · Mar 19, 2018 ·

This post describes a very similar process to what is described in the tutorial titled “Send new user an activation link in the new registration email.” The twist on this version is that this will send the user an email requesting that they confirm their email address, then it will send the admin a notification to manually activate that user.

The original version in the other tutorial was intended for use where users just need to confirm their email address. This version is for confirming their email address and then approving the account. Continue Reading →

Do not modify plugin files

Chad Butler · May 3, 2015 ·

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 is an important best practice – never, ever modify plugin files directly.

Rule 1: there is never a good reason to do this.

Rule 2: refer to rule 1.

Continue Reading →

How to hide posts completely

Chad Butler · Feb 10, 2015 ·

There are times when a site operator may wish to completely hide certain posts – either all posts that are blocked, posts of a certain category, or other possibilities.  While the main process that the plugin operates on is to show titles and excerpts on summary pages to drive users to conversion (registration), that is not a one-size-fits-all solution.

WP-Members 3.0 will begin to introduce certain administrative options to manage this process. But until then, here is a discussion of how to unload posts from display depending on criteria that you establish.  Continue Reading →

Redirect Blocked Content to a Log In Page

Chad Butler · Feb 3, 2015 ·

By default, the plugin automatically places a login form in place of blocked content if the user is not logged in.  But sometimes plugin users prefer to redirect a user to a log in page when they attempt to access a page or post with blocked content.

This can usually be accomplished with a custom function to check for the user’s login state, whether the content is to be blocked, and a redirect process.  Continue Reading →

  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • 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