• Im trying to use the Profile Builder plugin, to be able to update the s2members Custom Capabilities profile field.

    So my question is, what is the “Meta-name” for the Custom Capability field?

    Ive tried:
    ws_plugin__s2member_profile_s2member_ccaps
    ws-plugin–s2member-profile-s2member-ccaps

    And neither work, any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It is $wpdb->prefix.”capabilities”, but it’s better to use $user->add_cap(‘access_s2member_ccap_’.$ccap) [and $user->remove_cap(‘access_s2member_ccap_’.$ccap), respectively] to handle them.

    Thread Starter mikedistras

    (@mikedistras)

    So should the meta name to target the Custom Capabilities be:
    “s2members_capabilities” ?

    It is to be entered in to the Meta-Name field here:
    https://www.cozmoslabs.com/wp-content/uploads/2016/11/PB-select2-multiple-manage-fields.png

    What you show is the meta-name of the field, that you create in “Profile Builder” plugin, not related with s2M. Use it in your custom function to copy the value that user adds, and to do something with it, maybe to create/compare a s2M’s ccap.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Updating profile Custom Capabilities from front end’ is closed to new replies.