• Resolved Filippo

    (@pippoburro)


    Hello,
    I’ve been using the Flamingo plugin and noticed that, by default, user contacts are automatically imported into the Address Book. I’m curious to understand the reason behind this behaviour and whether there are settings or filters available to manage or modify it.

    Thank you in advance for your support, and I appreciate the work you’ve done with this plugin.

    Best regards,
    Filippo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Flamingo refers to WordPress users data to retrieve emails for the Address Book. It is a basic function that doesn’t harm anything. Since it is implemented as an action callback, you can customize it as you like.

    Thread Starter Filippo

    (@pippoburro)

    Hello @takayukister,
    thank you for your reply and for clarifying how Flamingo manages Address Book functionality.

    To address my requirements, I plan to remove the following actions:

    remove_action( 'profile_update', 'flamingo_user_profile_update', 10 );
    remove_action( 'user_register', 'flamingo_user_profile_update', 10 );
    remove_action( 'activate_' . FLAMINGO_PLUGIN_BASENAME, 'flamingo_collect_contacts_from_users', 10 );

    I’ve also added a conditional check using is_plugin_active() to ensure the plugin is active:

    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    if ( is_plugin_active( 'flamingo/flamingo.php' ) ) {
    remove_action( 'profile_update', 'flamingo_user_profile_update', 10 );
    remove_action( 'user_register', 'flamingo_user_profile_update', 10 );
    remove_action( 'activate_' . FLAMINGO_PLUGIN_BASENAME, 'flamingo_collect_contacts_from_users', 10 );
    }

    Please let me know if this approach is correct or if there’s anything else I should consider when customising these actions.

    Thank you again for your support and for maintaining this plugin!

    Best regards,
    Filippo

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.