Forked from andrewlimaza/pmpro-adjust-the-join-now-login.php
Last active
April 8, 2022 15:45
-
-
Save femiyb/4ddeb235a5fc97c6ae37ec75415f2d85 to your computer and use it in GitHub Desktop.
Adjust the Paid Memberships Pro login "Join Now" Link.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adjust the 'Join Now' link on the login page to a custom URL for Paid Memberships Pro. | |
* Follow this guide to add custom code to your membership site - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_custom_join_now_link( $links, $allowed_html ) { | |
$links['register'] = '<a href="https://www.thefixxsquad.stylefixxdaily.com/pricing/">' . __( 'Join Now', 'paid-memberships-pro' ) . '</a>'; | |
return $links; | |
} | |
add_filter( 'pmpro_login_forms_handler_nav', 'my_pmpro_custom_join_now_link', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment