Introductory Pricing: Save 50% on your first year of any plan. Use coupon code:

FIRSTYEAR50

  • Log In
  • Welcome
  • Features
  • Pricing
  • Documentation
  • Case Studies
  • Add Ons
  • Support
  • Learn
  • Events
  • Blog
  • Contact

Log In

Join Now | Lost Password?
Skip to content
Paid Memberships Pro WordPress Membership Plugin
  • Log In
  • Choose a Plan
  • Features
    • PMPro Platform
      • Plugin Features
      • Restrict Access
      • Register Members
      • Subscriptions
      • All Features
    • Payment Gateways
      • Stripe
      • PayPal Express
      • Paystack
      • CCBill
      • All Gateways
    • Add Ons
      • Integrations
      • Free Add Ons
      • Standard Add Ons
      • Plus Add Ons
      • All Add Ons

    Launch a Free Demo
    Explore PMPro in action with your own private demo site—preloaded with members, protected content, and premium Add Ons.

    Try PMPro Now
  • Use Cases
    • Associations
    • Blog and News
    • Communities
    • Courses
    • Directories
    • Paid Newsletters
    • Private Videos
    • Podcasting
  • Documentation
    • Download & Install
      • Download PMPro
      • Install Add Ons
      • Memberlite Theme
      • Setup WordPress
      • Staging Sites
      • Support
    • Initial Setup
      • Customize Pages
      • Payment Settings
      • Restrict Content
      • Membership Levels
      • Member Emails
      • User Fields
    • More Docs
      • Shortcodes & Blocks
      • Design Settings
      • Page Builders
      • Reporting
      • For Developers
      • All Docs

    Get your membership site up and running with Kim's help.

    Watch Initial Setup
  • Community
    • Engage & Learn
      • Upcoming Events
      • Courses
      • Videos
      • Step-by-Step Guides
      • Join Slack
      • Get Support
    • Blog
      • Case Studies
      • Product Comparison
      • Code Recipes
      • Release Notes
      • Migration Guides
      • All Blog Posts

    Join the Community
    Connect with other membership site creators who use PMPro to get paid.

    Join Slack
  • Pricing
Home  >  All Action and Filter Hooks  >  pmpro_login_widget_redirect_back

pmpro_login_widget_redirect_back

Choose whether to redirect back to the original page after login using the login widget. The default is yes (true).

apply_filters( 'pmpro_login_widget_redirect_back', true )

Parameters

$redirect
boolean

Return Value

true or false


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/login.php

View in Source Code

About Actions and Filters in PMPro

Hooks allow you to extend Paid Memberships Pro without editing any core plugin files. You can use a hook to program custom code that interacts with or modifies code in our plugin, Add Ons, your theme, and even WordPress itself.

There are two kinds of hooks: actions and filters.

  • Action hooks allow you to run new custom code at pre-defined locations.
  • Filter hooks allow you to change or extend existing code by modifying the data and returning it back to the software.

Click here to browse the full database of action and filter hooks available in Paid Memberships Pro. For help extending our Add Ons, refer to the individual Add On's documentation page for a list of available hooks.

For more developer-focused information about Paid Memberships Pro, check out the advanced developer topics documentation.

Was this article helpful?
YesNo

Action and Filter Hooks

  • adminpages/advancedsettings.php
  • adminpages/dashboard.php
  • adminpages/discountcodes.php
  • adminpages/functions.php
  • adminpages/login-csv.php
  • adminpages/membershiplevels.php
  • adminpages/memberships-csv.php
  • adminpages/memberslist.php
  • adminpages/memberslist-csv.php
  • adminpages/orders.php
  • adminpages/orders-csv.php
  • adminpages/pagesettings.php
  • adminpages/paymentsettings.php
  • adminpages/reports/login.php
  • adminpages/reports/memberships.php
  • classes/class-pmpro-admin-activity-email.php
  • classes/class-pmpro-discount-codes.php
  • classes/class-pmpro-levels.php
  • classes/class-pmpro-members-list-table.php
  • classes/class-pmpro-subscription.php
  • classes/class.memberorder.php
  • classes/class.pmproemail.php
  • classes/gateways/class.pmprogateway.php
  • classes/gateways/class.pmprogateway_authorizenet.php
  • classes/gateways/class.pmprogateway_braintree.php
  • classes/gateways/class.pmprogateway_check.php
  • classes/gateways/class.pmprogateway_cybersource.php
  • classes/gateways/class.pmprogateway_payflowpro.php
  • classes/gateways/class.pmprogateway_paypal.php
  • classes/gateways/class.pmprogateway_paypalexpress.php
  • classes/gateways/class.pmprogateway_paypalstandard.php
  • classes/gateways/class.pmprogateway_stripe.php
  • classes/gateways/class.pmprogateway_twocheckout.php
  • includes/addons.php
  • includes/admin.php
  • includes/adminpages.php
  • includes/capabilities.php
  • includes/checkout.php
  • includes/compatibility/elementor.php
  • includes/content.php
  • includes/countries.php
  • includes/crons.php
  • includes/currencies.php
  • includes/email.php
  • includes/fields.php
  • includes/functions.php
  • includes/https.php
  • includes/init.php
  • includes/license.php
  • includes/login.php
  • includes/menus.php
  • includes/metaboxes.php
  • includes/profile.php
  • includes/recaptcha.php
  • includes/reports.php
  • includes/rest-api.php
  • includes/scripts.php
  • includes/spam.php
  • includes/states.php
  • includes/terms-of-service.php
  • pages/account.php
  • pages/billing.php
  • pages/cancel.php
  • pages/checkout.php
  • pages/confirmation.php
  • pages/invoice.php
  • paid-memberships-pro.php
  • preheaders/account.php
  • preheaders/billing.php
  • preheaders/cancel.php
  • preheaders/checkout.php
  • preheaders/confirmation.php
  • preheaders/levels.php
  • preheaders/member_profile_edit.php
  • scheduled/crons.php
  • services/applydiscountcode.php
  • services/authnet-silent-post.php
  • services/braintree-webhook.php
  • services/getfile.php
  • services/ipnhandler.php
  • services/stripe-webhook.php
  • services/twocheckout-ins.php
  • shortcodes/membership.php
  • shortcodes/pmpro_account.php
  • shortcodes/pmpro_member.php

Paid Memberships Pro is recommended by our customers and users

Plugin Reviews

4.3 out of 5

G2

4.8 out of 5

Capterra

5 out of 5

We’re 100% GPL

Our plugin's code is not obfuscated, runs on as many sites as you want and can be customized to fit your project's needs. We just ask that you follow the GPLv2 guidelines by applying the GPLv2 license to any altered or unaltered version of PMPro that you distribute. License Details »

GPL v2

Recent Articles and Updates

  • Featured image for code recipe 'Customize Login Error Messages to Boost Account Security'
    Customize Login Error Messages to Boost Account Security
  • Banner for Memberlite v6.0
    Introducing Memberlite v6.0
  • Screenshot of featured image for 'Capture User Fields for Google Analytics Integration Add On' code recipe post
    Capture User Fields as User Properties for Reporting in Google Analytics Integration Add On

Platform

  • Pricing
  • Features
  • Product Comparison
  • Reviews
  • Case Studies
  • Screenshots
  • Videos
  • Step-by-Step Guides

Use Cases

  • Associations
  • Blog & News
  • Community
  • Courses
  • Directory & Listing
  • Paid Newsletter
  • Podcast
  • Videos

Add Ons

  • Free
  • Standard
  • Plus
  • Admin
  • Integration
  • Payment
  • Third Party
  • View All

Get Help

  • Support
  • Documentation
  • Download & Install
  • Hosting
  • Developers
  • Blog
  • Slack Community
  • Contact Us

Company

  • About Us
  • Events
  • Brand Assets
  • Affiliates
  • Accessibility Statement
  • Sitemap
  • Privacy Policy
  • Terms of Service
Join Us On

© 2025 Paid Memberships Pro™. Paid Memberships Pro is a trademark of Stranger Studios, LLC. All Rights Reserved.