Support » Plugin: Simple Share Buttons Adder » Filter for Whatsapp icon display on desktop

  • Hi, according with the plugin indications, the Whatsapp icon only appears on mobile devices.

    However, many times Whatsapp is used via its web interface, so the Whastapp share button would be interesting to show in desktop as well.

    Checking the code I see the restriction in the function ssba_whatsapp (php/class-buttons.php file):

    if ( ! wp_is_mobile()) {
    return;
    }

    It would be possible, for next versions, to add here a filter to show the Whatsapp icon even for non-mobile context, something like this:

    if ( ! wp_is_mobile()) {
    if ( apply_filters( ‘hide_whatsapp_on_mobile’, true ) ) {
    return;
    }
    }

    Or even better, give a choice in the settings to allow this functionality 🙂

    Nothing else, many thanks for your plugin!

  • You must be logged in to reply to this topic.