Hi Roman,
You can use the following JS code:
jQuery(document).ready(function(){
jQuery('li#wp-admin-bar-wpdiscuz').remove();
});
Here is a helpful article: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/
Thread Starter
Roman
(@vladroman)
Thank you.
This works, but not really a hook. 🙂 And for using this better (not really must, but better do) to check, that user logged in as admin and watching page, where wpDiscuz works.
If there is no variant to disable wpDiscuz top menu on server side with php, on client side better to use css:
#wp-admin-bar-wpdiscuz { display: none; }
Hope, you will add disabling top menu options to plugin settings in future relizes. Just as respect to customers. 🙂
Anyway, wpDiscuz is great plugin! Started using it not long time ago. And looks like I’m going to move all my sites to it.