• Resolved lewebhamster

    (@lewebhamster)


    Hello,

    I notice that your plugin disables the wordpress toolbar for subscribers connected to the site.
    Do you know why?
    Thank you very much.
    David

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rafiz Sejim

    (@rafizsejim)

    Hello @lewebhamster

    Thank you for reaching us.

    Showing the toolbar for subscribers is not a standard behavior of a directory site since there is not much of a use of the toolbar. Moreover, it is not recommended if you use WooCommerce. WooCommerce prevents displaying the toolbar for subscriber role.

    Nonetheless, if it is required for you then you can use the following filter in functions.php

    add_filter('show_admin_bar', '__return_true', 1000);

    If you use WooCommerce then add this too –

    add_filter('woocommerce_disable_admin_bar', '_wc_disable_admin_bar', 10, 1);
     
    function _wc_disable_admin_bar($prevent_admin_access) {
     
        return false;
    }
    
     

    I hope that helps.

    Regards,

    Thread Starter lewebhamster

    (@lewebhamster)

    Hello @rafizsejim
    Thank you.
    It works.
    Nevertheless the bar remains visible in disconnected mode.

    Plugin Support Rafiz Sejim

    (@rafizsejim)

    Hello @lewebhamster

    You can add a condition to check if the user is logged in, here is the code –

    if (is_user_logged_in()) {
    	add_filter('show_admin_bar', '__return_true', 1000);
    };
    Thread Starter lewebhamster

    (@lewebhamster)

    Thank you so much.
    Does the premium version of the plugin allow you to display the email address or any other information in Map Info Window?

    Plugin Support Rafiz Sejim

    (@rafizsejim)

    Hello @lewebhamster

    According to the WordPress forum guidelines, we are not allowed to provide support for any premium/paid features. Please reach us directly from our website here https://directorist.com/contact

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Toolbar deactivated for subscriber account’ is closed to new replies.