Hello @david457
Thank you so much for reaching out to us 🙂
Currently, this feature is not available in our plugin.
We are going to update the plugin in the next 24-48 hours.
A filter hook will be added in the upcoming update, through which you can achieve this feature.
Best Regards,
Support Team
Hello @david457
We’ve added a filter hook in the latest update.
Please update the plugin to the latest version.
Use the code below in the functions.php file of your child theme OR use this plugin to add the code https://wordpress.org/plugins/code-snippets/
add_filter('hashbar_should_output', 'hashbar_wpnb_should_output', 10, 2);
function hashbar_wpnb_should_output($status, $post_id){
if ( !is_user_logged_in() ) {
$status = false;
}
return $status;
}
If you face any problems using the code, please create a ticket on our support website.
https://hasthemes.com/contact-us/
That way you can get support from us more quickly as the developer of this plugin handles all the tickets over there.
We’ll be looking forward to your kind response.
Best regards,
Support Team
Hi,
Since we haven’t heard back from you. We are closing the ticket for now. If you need further assistance please feel free to reopen this ticket at any time OR create a new ticket.
Thanks!
This is weird. I am interested with this feature as well so I tried the code above:
add_filter('hashbar_should_output', 'hashbar_wpnb_should_output', 10, 2);
function hashbar_wpnb_should_output($status, $post_id){
if ( !is_user_logged_in() ) {
$status = false;
}
return $status;
}
However, it did the exact opposite for me. If I’m logged in, the banner shows up. If I’m not logged in, it does not. Any clue why this is happening? TIA
Hello @iantiu
We are very sorry for the inconvenience.
A little change is needed in the code. Just use the code below
add_filter('hashbar_should_output', 'hashbar_wpnb_should_output', 10, 2);
function hashbar_wpnb_should_output($status, $post_id){
if ( is_user_logged_in() ) {
$status = false;
}
return $status;
}
Thank you very much!
Best Regards,
HT Plugins