-
-
Save kimwhite/318502f973a6cd7d31e4bdf0332272bc to your computer and use it in GitHub Desktop.
Example of how to add links to the Member Links list on the Membership 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 | |
/** | |
* Example of how to add links to the Member Links list on the Membership Account page. | |
* | |
*/ | |
// Add links to the top of the list | |
function my_pmpro_member_links_top() { | |
//Add the level IDs here | |
if ( pmpro_hasMembershipLevel( array(1,2,3 ) ) ) { | |
//Add the links in <li> format here ?> | |
<li><a href="/top/">My Member Link Top</a></li> | |
<?php | |
} | |
} | |
add_action( 'pmpro_member_links_top','my_pmpro_member_links_top' ); | |
// Add links to the bottom of the list | |
function my_pmpro_member_links_bottom() { | |
//Add the level IDs here | |
if ( pmpro_hasMembershipLevel( array( 1,2,3 ) ) ) { | |
//Add the links in <li> format here ?> | |
<li><a href="/bottom/">My Member Link Bottom</a></li> | |
<?php | |
} | |
} | |
add_action( 'pmpro_member_links_bottom','my_pmpro_member_links_bottom' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment