The wpmem_member_links filter hook allows you to filter the links that are shown on the member-area shortcode page when the user is in a logged in state. By default, this will show a bulleted list of links to update registration data and change password.
You can use this filter to append to this list, create content before or after it, or change it completely.
IMPORTANT: If you choose to change the link list completely, be certain that you are careful to include the links for updating information and changing password in some way in your returned filtered content. Otherwise your users will not be able to access these functions.
Usage
add_filter( 'wpmem_member_links', 'my_member_links' ); function my_member_links( $string ) { // Original link output comes in as a $string. // You can add to it before or after, or drop it altogether. $string = "<p>I put this before the original links</p>" . $string; $string = $string . "<p>This is extra stuff I added after...</p>"; return $string; }
Code Snippet Library [Subscriber Content]
- Integrate WP User Avatar with WP-Members User Profile
- Generate Random Display Name Part 2
- Add a file upload field to attach to admin notification email during registration
- User Settings Page
- Member Links Filter Advanced Demo
See a list of all filter and action hooks