• Resolved Clifford Paulick

    (@cliffpaulick)


    I’d like to see an option to not load the chat script if the user is logged in at all or optionally if user has certain role/capability (e.g. load for logged in users except for Administrators)

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

    (@zohosalesiq)

    Hello Clifford,

    It may be possible to hide the chat widget only for those users who are logged in, if you paste this hide chat widget API on every page a logged in user might access – https://www.zoho.com/salesiq/help/developer-section/jsapi.html#chat-button-visible.

    However, loading the chat widget based on a visitor/customer’s role is something that we do not support right now out of the box. We can discuss suitable alternatives or workarounds that may apply to you if you contact us on live chat from here: https://www.zoho.com/salesiq/help/ at your convenience.

    Regards,
    Kris – Zoho SalesIQ Team.

    Thread Starter Clifford Paulick

    (@cliffpaulick)

    Kris, thanks for the response.

    The idea is to wrap the loading code within something like this:

    if ( ! current_user_can( 'manage_plugins' ) ) {
    // load SalesIQ
    }

    The manage_plugins to be customizable either via wp-admin UI or via apply_filters()

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add option to exclude logged-in user or specific user role/capability’ is closed to new replies.