Forked from LMNTL/my_pmprosl_custom_shortcode.php
Last active
December 4, 2019 16:18
-
-
Save kimcoleman/8d1c2fd64656505d0f6f36a13cc4fa72 to your computer and use it in GitHub Desktop.
Use a custom social login shortcode with PMPro Social Login (Requires v.3 or above)
This file contains hidden or 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 | |
/** | |
* Use a custom shortcode with the Social Login Add On for Paid Memberships Pro (Requires v.3 or above) | |
* | |
*/ | |
function my_pmprosl_custom_shortcode( $shortcode ) { | |
// Edit this line to change the shortcode displayed on the checkout page. | |
return '[TheChamp-Login title="Use your Social Account to Login"]'; | |
} | |
add_filter( 'pmprosl_login_shortcode', 'my_pmprosl_custom_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment