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

filters

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 →

Handling form layout when using a builder plugin

Chad Butler · Jan 31, 2018 ·

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

 

Builder plugins (and themes that use them) such as SiteOrigin, Elegant Builder, Divi, and others, have become more popular.

Without beating a topic that has already been beat to death in the WordPress developer community, let me just say that my position on it is conflicted. 

First, I generally agree with the assessment provided by Pippin Williamson:

Builders provide a poor user experience and cause significant compatibility problems for other plugins.

The other big issue is that their use violates a primary reason for using a CMS in the first place – separating content from design.  Using a builder embeds design elements into the content which is a major design flaw from a CMS site management perspective.

On the other hand, I also agree with Chris Lema – builders exist because there is a market demand for them:

Why do people want WordPress Page Builders?

Simple. They offer customers a solution for personalization that mass-produced themes can’t offer, while at a lower price than working with a professional web developer and web designer.

A bigger problem than simple compatibility however, is that there is simply no industry standardization.  In the WP development community, most successful plugin developers work with WP’s core standards.  That makes it easier for everyone because if something isn’t initially compatible, a couple of adjustments with filter/action hooks and you’re dovetailing seamlessly.  

Continue Reading →

Customizing form fields in WP-Members 3.1.7

Chad Butler · Jan 23, 2017 ·

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

 

As I mentioned in the WP-Members 3.1.7 announcement, there is a new filter hook that will allow greater flexibility of customizing form fields that are used when the registration form is displayed.  One common request that this solves in a better way is how do I display fields for registration but not for user profile or vice versa.

Continue Reading →

Change the WordPress new user notification using the wp_mail filter

Chad Butler · Jul 11, 2016 ·

I have shown in the past how to change the WordPress new user notification by rewriting the wp_new_user_notification() function, which is a pluggable function.  But the transition from WP 4.2 to 4.3 showed why even pluggable functions can be problematic.  So here is a way to do it with a filter that almost no one knows about – wp_mail.  Continue Reading →

  • Page 1
  • Page 2
  • Page 3
  • Interim pages omitted …
  • Page 15
  • 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