• 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

Why you should NOT use do_shortcode()

Chad Butler · Jan 28, 2019 ·

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

 

DO NOT use do_shortcode() to run a shortcode!

If you have to ask yourself “why?” when reading that, then this post is for you!  

Continue Reading →

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 →

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 →

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 →

Integrating with Easy Digital Downloads

Chad Butler · Jul 5, 2016 ·

Easy Digital Downloads is an incredibly popular plugin that allows you to create a digital product store using WordPress.

You can require users to be logged in to checkout in EDD, but that does not restrict a download link from being used when the user is not logged in.  Restrictions can be put on the link in terms of number of times it can be downloaded and disable redownload, but that can lead to a poor user experience – being over protective can create problems for legitimate users while protecting what amounts to a “perceived” risk rather than real.

But you can integrate with WP-Members to force a user to be logged in to actually download the file.  This way, even if the link is known and not expired, the user will be redirected to login if they attempt to download without being logged in.

Continue Reading →

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