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

wp_redirect

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 →

Redirect requests to wp-login to a front end login page

Chad Butler · Aug 8, 2012 ·

Note: If you want an easy way to do this, the Advanced Options extension offers this as a setting. But if you need more control over the process than a simple “on/off” switch, the method described here is a flexible and customizable alternative.

The new version of WP-Members 2.7.6 adds a method of picking up the redirect_to parameter.  This allows you to make redirecting from the wp-login more seamless, since the wp-login is designed to redirect the user back to where their login was requests (such as comments or a forum). Continue Reading →

Redirect a logged in user from a landing page

Chad Butler · Aug 7, 2012 ·

Suppose you have a landing page you are directing users to, and users can login on that page, then be redirected to an articles page.  What happens if the user is already logged in and they hit the landing page?  Here is a process that will help smooth out the user experience.  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