Forked from strangerstudios/my_pmpro_member_links_top.php
Last active
September 5, 2023 19:57
-
-
Save kimwhite/b3b93ec41faaa5b35c70958af34f8e94 to your computer and use it in GitHub Desktop.
Add Link to the Paid Memberships Pro 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 // do not copy this line. | |
/** | |
* This recipe will allow you to add custom links on your Members Account Page | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_member_links_top() | |
{ | |
?> | |
<li><a href="/name-of-your-page/">Title of Your Link</a></li> | |
<li><a href="https://google.com">Google</a></li> | |
<?php | |
} | |
add_action("pmpro_member_links_top", "my_pmpro_member_links_top"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment