Skip to content

Remote Operations #342

@gabrielwohlfart

Description

@gabrielwohlfart

I'm looking at the documentation available at https://s2member.com/kb-article/pro-api-for-remote-operations/ and if you can please clarify a doubt.

I'm using remote operations to modify users.
I use the function:
"s2member_ccaps" => "music,videos",
To remove all packages use --all
"s2member_ccaps" => "--all",
How can I proceed to remove only 1 package?
"s2member_ccaps" => "--music",
I tested it as described above but it didn't work.
Would it be possible to do it this way or do I need to first get all the packages from the user, remove them all and re-add only the ones I don't want to remove?

Can you help me on this issue?

P.s: Sorry for the beginner question.
I don't have knowledge in PHP, anyway I'm looking to develop an integration of s2 with Hotmart payment platform.
I'm doing this as a learning and not a commercial.
I hope the translator translated it well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions