• Plugin Contributor eppu

    (@eppu)


    Hi,

    Great plugin.

    I was wondering if you could create user delete action(rusac_delete_address) that I could hook to delete_user hook with following code.

    function my_custom_delete_ac_profile( $user_id ) {
    do_action( ‘rusac_delete_address’, $user_id );
    }
    add_action( ‘delete_user’, ‘my_custom_delete_ac_profile’ );

    Thank you in advance.
    -Eppu

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Pravin Durugkar

    (@pravind)

    hi @eppu
    This is very good Idea.. I will update this into the plugin and let you know.

    Please do not forget to rate this plugin if you like it. ??

    Plugin Author Pravin Durugkar

    (@pravind)

    Hello @eppu

    I have updated this feature check in this new version.

    Please do not forget to rate this plugin if you like it. ??

    Plugin Contributor eppu

    (@eppu)

    Hi,

    User delete works wonderfully except if the user is newly created or auto synced.

    I found out that the autosync and rusac_add_new_address do not add _rusac_synced_user_id to databace so the user cannot be deleted.

    Thank you for your time
    -Eppu

    Plugin Contributor eppu

    (@eppu)

    Hi,

    Do you have any update on this?

    Thank you for your time
    Sincerely
    Eppu

    Plugin Contributor eppu

    (@eppu)

    Hi,

    If you could add couple of lines of code to your next update. So that the ID gets saved to the database.

    First we could add to the ID when adding new users.

    Inside file rus-activecampaign.php on line 206 inside function rusac_send_data_to_ac add:
    update_user_meta( $user_id, '_rusac_synced_user_id', $result['subscriber_id']);

    And second would be when auto syncing users in function sync_active_campaign_list insert line after line 396:
    update_user_meta( $user->ID, '_rusac_synced_user_id', $result['subscriber_id']);
    inside the if statement if (!empty($result['result_code']) && $result['result_code'] == 1) {

    This would fix the problem and all the user would have the id that is required for removal of the user from AC.

    Thank you for your time.
    Sincerely
    Eppu

    Plugin Author Pravin Durugkar

    (@pravind)

    Hello @eppu

    I will add this lines and will test the plugin, Thanks for your support

    Plugin Contributor eppu

    (@eppu)

    Hi,

    Thank you @pravind .

    Glad to be of assistance.

    Sincerely
    -Eppu

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Action to delete user’ is closed to new replies.