Title: cvak's Replies | WordPress.org

---

# cvak

  [  ](https://wordpress.org/support/users/cvak/)

 *   [Profile](https://wordpress.org/support/users/cvak/)
 *   [Topics Started](https://wordpress.org/support/users/cvak/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cvak/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cvak/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cvak/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cvak/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cvak/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Membership 2] Expired Subscription remove](https://wordpress.org/support/topic/expired-subscription-remove/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/expired-subscription-remove/#post-7366811)
 * Hi Predrag,
 * I need to change status automatically. I thought that it should be set in settings
   somewhere to change automatic. I have worked with API many times so it will not
   be a problem to do some cron job.
 * Thank you for everything. You can close the topic.
 * Best,
    ERik
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Membership 2] Expired Subscription remove](https://wordpress.org/support/topic/expired-subscription-remove/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/expired-subscription-remove/#post-7366798)
 * Hello,
 * I disable Multiple Membership, but still had expired status in fb after ended.
 * My next question is; it is posible that after expired change status to deactivate?
 * Thank you,
    Erik
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More] Cookies from other site](https://wordpress.org/support/topic/cookies-from-other-site/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/cookies-from-other-site/#post-7391164)
 * Hi Cory,
 * I had this value in wp-config.php
 *     ```
       define( 'COOKIE_DOMAIN', 'primarius.org' );
       define('ADMIN_COOKIE_PATH', '/');
       define('COOKIE_DOMAIN', 'primarius.org');
       define('COOKIEPATH', '');
       define('SITECOOKIEPATH', '');
       define( 'COOKIEHASH', 'asdf_arbitrary_strisng' );
       define( 'DOMAIN_CURRENT_SITE', 'primarius.org' );
       ```
   
 * I still have a problem. Any new hint?
 * Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Membership 2] Expired Subscription remove](https://wordpress.org/support/topic/expired-subscription-remove/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/expired-subscription-remove/#post-7366770)
 * Hi Predrag,
 * I had active Multiple Membership, now I disable and run some test for 1,2 days.
 * If users membership is expired then they cant access to fb content only to f0.
 * Thanks for information about addo-ons. I will be reported after a few days.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Membership 2] Expired Subscription remove](https://wordpress.org/support/topic/expired-subscription-remove/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [10 years ago](https://wordpress.org/support/topic/expired-subscription-remove/#post-7366745)
 * Hey Bojan,
 * I am fine tnx, you?
 * I have 2 memberships, f0 and fb. Every user have membership fb with finite access,
   and when membership end go to f0, but then user have 2 membership(look at picture
   below) one acitve and one expired. My question is how can delete/remove fb membership(
   one who is expired) or change it to cancelled(ofc everything must be automatic)
 * Thank you.
 * Image; [http://prnt.sc/b4mi3o](http://prnt.sc/b4mi3o)
 * ERik
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Membership 2] Membership user role merge HELP](https://wordpress.org/support/topic/membership-user-role-merge-help/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/membership-user-role-merge-help/#post-6425550)
 * Hey Bojan,
 * I have users without memberships, and I want to add him through php code.
    I 
   use the following php code for adding membership.
 * `MS_Plugin::$api->get_member($user_id)->add_membership($membership_id);`
 * This code worked just fine for me, but after that I want to add another(change)
   membership for user( I use upper code), but when I want get user memberships,
   I get some different membership ID.
 * What I do wrong?
 * P.S. If I add membership to user(who dont have any) through wp-admin(no php code)
   and then work with php codes(add_membership, drop_membership,…) it WORKS!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Membership 2] Membership user role merge HELP](https://wordpress.org/support/topic/membership-user-role-merge-help/)
 *  Thread Starter [cvak](https://wordpress.org/support/users/cvak/)
 * (@cvak)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/membership-user-role-merge-help/#post-6425513)
 * Hello Bojan!
 * Thanks for your answer.
    I solved that problem but there has been a new problem.
   When my script add (after first login) new membership to user, it change ID to
   something new.
 * Example: User has membership id=”2792″, after login user get membership id=”2319″.
 * script code:
 *     ```
       MS_Plugin::$api->get_member($user_id)->drop_membership(2792);
       MS_Plugin::$api->get_member($user_id)->add_membership(2319);
       ```
   
 * In Membership 2 plugin is user membership id=”2319″, which is OK, but when I 
   debug it write that user membership id is “2348”( I dont have any membership 
   with that role)
 * What I do wrong?
 * p.s.
    At first when I create new member script add successful membership id! `
   MS_Plugin::$api->get_member($user_id)->add_membership(2792 );`

Viewing 7 replies - 1 through 7 (of 7 total)