• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter Hooks » wpmem_member_links

wpmem_member_links

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

Ready to get started?

Join Today!

© 2023 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Privacy Policy
  • Terms of Service
  • Refund Policy