Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] Insert [extra_info] parameter from SWPM API

by

Simple Membership Plugin › Forums › Simple Membership Plugin › Insert [extra_info] parameter from SWPM API

Tagged: api, create, extra_info, Member

This topic contains 6 replies, has 2 voices, and was last updated by  jaume 4 days, 18 hours ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 13, 2021 at 12:52 pm #21929

    jaume
    Participant

    Hi, Hey, Good morning, good afternoon, good night to everyone,

    I’ve been looking in the forum but haven’t found an answer, so I’ve decided to post a question.

    Following the code example in Simple Membership API – Creating A Member Account Using HTTP POST Request I’m able to insert new members from my own code.

    It works great, now I would like to add a string into the [extra_info] field of the swpm_members_tbl, as you say in the API documentation page

    Parameter names are equal to members_tbl column names and format. Example: if you want to set company name for the user, you just pass company_name parameter

    but when I add extra_info optional parameter to the array:

    $post_arr = array(
    'swpm_api_action' => 'create',
    'key' => $my_key,
    'first_name' => 'John',
    'last_name' => 'Smith',
    'email' => 'johns@example.com',
    'extra_info' => $my_50_char_string,
    'company_name' => $my_50_char_string,
    );

    It doesn’t seems to work, the new member is created, but the extra_info field remains empty, but not the company_name that have the same value.

    Am I doing something wrong? Didn’t I understand something?

    Thank you very much for any help you can provide me.

    January 14, 2021 at 9:23 am #21939

    mbrsolution
    Moderator

    Hi,

    The parameter name extra_info is not currently available.

    Thank you

    January 14, 2021 at 2:03 pm #21941

    jaume
    Participant

    Thank you @mbrsolution,

    Is there any other parameter unavailable?

    Regards,

    January 14, 2021 at 9:39 pm #21944

    mbrsolution
    Moderator

    Which parameters are you looking for?

    Regards

    • This reply was modified 5 days, 8 hours ago by  mbrsolution.
    January 15, 2021 at 8:22 am #21951

    jaume
    Participant

    I need to save to every membership an integer value and a string value.
    I’m registering the members from a custom code using SWPM membership API.

    My first think was using the extra_info to store a json array with this data, but The parameter name extra_info is not currently available. What about the column notes.

    The member should not see/edit this values.

    Thank you very much.

    January 15, 2021 at 12:11 pm #21955

    mbrsolution
    Moderator

    Hi, I have submitted a message to the developers to investigate further your request.

    Thank you

    January 15, 2021 at 12:18 pm #21956

    jaume
    Participant

    I appreciate it, thank you very much

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Please read this message before you start using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Copyright © 2021 | Simple Membership Plugin | Privacy Policy