• 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
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » How I Did It » User Settings Page

User Settings Page

Chad Butler · Mar 28, 2012 ·

The User Settings Page is customized with a relatively simple filter hook in the plugin using the method described in this post.  Read on for the exact script that I am using here.

This article is only available to WP-Members Support Subscribers. If you have an existing subscription, please login below. If you do not have a current support subscription, you can purchase a support subscription here.

Already a Member? Log In Here
   
Forgot password? Click here to reset

To gain full access to WP-Members premium content, a current support subscription is required. You can purchase an annual support subscription for as little as $59, which provides you with access to priority support, a customer support forum, access to code snippets, and more.

Why wait? Choose your subscription option here.

[
Why join?]

How I Did It filters, get_avatar, get_currentuserinfo, hooks, tips, wpmem_member_links

Welcome to RocketGeek Interactive › Forums › User Settings Page

Tagged: filters, get_avatar, get_currentuserinfo, hooks, tips, user settings, wpmem_member_links

  • This topic has 8 replies, 5 voices, and was last updated 5 years, 3 months ago by Chad Butler.
Viewing 7 reply threads
  • Author
    Posts
    • May 4, 2012 at 1:07 pm #526
      Chad Butler
      Keymaster

      The User Settings Page is customized with a relatively simple filter hook in the plugin using the method described in this post.  Read on for the exac
      [See the full post at: User Settings Page]

    • October 20, 2012 at 7:52 pm #1504
      secretsau
      Participant

      It gives an error: Parse error: syntax error, unexpected T_VARIABLE on your line 66 ?

    • October 21, 2012 at 9:21 am #1505
      Chad Butler
      Keymaster

      Whoops!

      I missed a couple semicolons at the end of these lines:

      <code>$city     = get_user_meta( $current_user->ID, ‘city’, true );
      $thestate = get_user_meta( $current_user->ID, ‘thestate’, true );</code>

      The code snippet has been corrected if you want to recopy it and give it another go.

      Thanks for catching this.

    • December 11, 2012 at 5:55 pm #1669
      geektink
      Participant

      Forgive me, but I’m just feeling my way around here. Where does this code go?

      Thanks!

    • December 12, 2012 at 9:42 am #1675
      Chad Butler
      Keymaster

      No problem – filter and action hooks and such should go in your theme functions.php file.

    • August 21, 2013 at 2:29 pm #3000
      woodlake06798
      Participant

      why isn’t this just a short code?

    • August 22, 2013 at 10:58 am #3005
      Chad Butler
      Keymaster

      Hi woodlake – That’s a good question – the answer is that this is a customization that is specific to the Twitter Bootstrap framework.  It is provided (as are the other posts under “How I Did It”) to explain the customizations I did to integrate the plugin on this site.

      So this is not something that is intended to be a shortcode, but rather something that is intended to provide an example of how to use the filter hooks provided in the plugin.

      Hope that clarifies.

    • November 11, 2015 at 5:50 pm #8908
      rocketgeek@tibesar.com
      Blocked

      Hi Chad,

      Once you add this code to the functions.php file how do you access (display) the User Settings?

      Is there a shortcode that we can place onto a Page? Then add this page to the menus so that the users can see when their subscription expires…….

      Thank you! As always GREAT work!

      Marcus Tibesar
      Tibesar Family Archives

      • November 11, 2015 at 7:32 pm #8916
        Chad Butler
        Keymaster

        Yes, the shortcode to be used is [wp-members page="user-profile"] That will show what is being customized here in this post. If the expiration extension is being used, there will be an additional link for renewal.

  • Author
    Posts
Viewing 7 reply threads
  • You must be logged in to reply to this topic.
Log In

Ready to get started?

Join Today!

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

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