Created
April 4, 2018 13:10
-
-
Save andrewlimaza/fd1cc877a5230a3c8c968a7095f23298 to your computer and use it in GitHub Desktop.
Billing Page link added to PMPro Account Page.
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 | |
/** | |
* This adds a custom link to the account page for Paid Memberships Pro. | |
* Add the code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* www.paidmembershipspro.com | |
*/ | |
function pmpro_add_billing_page_link() { | |
global $current_user; | |
echo '<li><strong><a href="/link-to-billing-page">Billing Information</a></strong></li>'; //change href value. | |
} | |
add_action( 'pmpro_account_bullets_top', 'pmpro_add_billing_page_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment