add_filter( 'wpmem_member_links_args', function( $args ) { /* * Default wrapper is <ul>, which we don't need/want as * we'll be wrapping the link elements with "<p>" tags instead. * So just blank these values to empty. */ $args['wrapper_before'] = ""; $args['wrapper_after'] = ""; /* * Change row elements. * The default will be like this: * <li><a href="/update-my-settings/?a=edit">Edit My Information</a></li> * We're changing the <li> to <p> tags and giving the <a> tag a button class. * Also, I'm showing two ways of handling the text. If you have a single * language site and won't be changing it, it's fine to hard-code the text. * But if you need it to be translatable, use wpmem_get_text() with the * following tags: * wpmem_get_text( 'profile_edit' ) * wpmem_get_text( 'profile_password' ) * Or for custom text you will translate in a custom language file: * __( 'your custom text', 'your-custom-text-domain' ) */ $args['rows'] = array( '<p><a class="button" href="/update-my-settings/?a=edit">Edit My Information</a></p>', '<p><a class="button" href="/update-my-settings/?a=pwdchange">' . wpmem_get_text( 'profile_password' ) . '</a></p>', ); return $args; });
Not sure what to do with this code?
You're not a "coder" and don't know what to do? Don't worry! Code Snippets are the basic building blocks of WordPress customization, and once you know the basics, they are simple to use.
Here are some free articles to get you started:
- Using Code Snippets from the Site
- The functions.php File
- Create a plugin file for custom functions
- Create a child theme
- Do not modify plugin files!
For "hands on" help, consider a plugin support subscription or the Pro Bundle.