WORDPRESS – UPDATE MEMBER META PROGRAMMATICALLY IN WISHLIST MEMBER PLUGIN

114

WishListMembers plugin is a great plugin for membership site no doubt, it brings lots of features in the table but one thing I disappointted though is the lack of user management where users or members are allowed to modify their info, level or custom form field, so I’ve decided to dig around in their codex area and fortunately I’ve found a light, and I want to share you this, you’re lucky folks you’re in the right place.

Without further ado lets get started

Get Member

Syntax

Parameters

Before we can update member meta or in WishList it’s called user options, first we have to fetch member custom or default address fields.

For version 2.71.2026 and below

Code

For latest version you can just simply call wlmapi_get_member() method without initiating API Method class.

Update Member

Syntax

Parameters

Code

Below code assumed you already assigned posted or submitted data.

 

Leave A Reply

Your email address will not be published.