Login
Remember
Register
PHPOnlineSupport
Questions
Unanswered
Tags
Categories
Ask a Question
Ask a Question
How to hide admin bar (admin toolbar) from frontend?
+1
vote
1.8k
views
asked
Nov 22, 2018
in
Plugins
by
Rohith
I'm making a plugin on which I need to hide the admin bar (admin toolbar) from frontend, I mean if I'm logged in the backend the admin bar shows up on my frontend custom page for the plugin. How can I hide it please?
adminbar
admin-bar
widget
plugin
toolbar
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
0
votes
answered
Nov 22, 2018
by
Saju
Add this to your page, and it should do the trick.
show_admin_bar( false );
Refer here for more info
https://codex.wordpress.org/Function_Reference/show_admin_bar
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
0
votes
1
answer
2.2k
views
Fatal error: Call to undefined function wp_get_current_user() in
asked
Nov 2, 2018
in
Plugins
by
mithun
(
730
points)
wp
wordpress
plugin
0
votes
1
answer
1.2k
views
Add Member to Wishlist programatically
asked
Mar 1, 2017
in
Plugins
by
anonymous
add
member
plugin
wishlist
programatically
+1
vote
1
answer
764
views
How to hide a configurable product own price? In Magneto
asked
May 11, 2016
in
Magento
by
mithunrockey
(
630
points)
magento
configurable
associated
0
votes
0
answers
2.2k
views
How to Remove Menu Items in Admin Depending on User Role?
asked
Jul 20, 2018
in
Wordpress
by
anonymous
wordpress
cms
0
votes
2
answers
4.2k
views
How to extract domain name from a url
asked
Jul 17, 2018
in
General
by
anonymous
url
domain
extract
php
0
votes
1
answer
10.1k
views
How to cancel/abort an Ajax request already happened, but that I have not yet received the response from?
asked
Jul 28, 2017
in
Jquery
by
Suni
ajax
request
cancel
All categories
General
(38)
CMS
(21)
Wordpress
(19)
Plugins
(5)
Themes
(2)
Drupal
(1)
Joomla
(1)
Frameworks
(20)
eCommerce
(58)
IOT - Internet Of Things
(4)
Javascript
(6)
Databases
(1)
Categories
All categories
General
(38)
CMS
(21)
Wordpress
(19)
Plugins
(5)
Themes
(2)
Drupal
(1)
Joomla
(1)
Frameworks
(20)
eCommerce
(58)
IOT - Internet Of Things
(4)
Javascript
(6)
Databases
(1)
Most popular tags
magento
wordpress
php
wp
category
module
product
laravel
kohana
admin
url
cache
jquery
database
configurable
serial1
serial
encrypt
phalcon
truncate
fishpig
js
include
javascript
cms
backend
email
plugin
post
arduino
seo
security
migrate
editor
decrypt
python
iot
map
json
shipping
password
core
log
mage
pear
string
replace
extension
import
php7
error
function
form
order
google
image
youtube
customer
site-links
adblocker
qr-code
barcode
samsung
mac
popup
newsletter
feed
auto-numbering-column
datatable
admin-bar
adminbar
toolbar
mongodb
address16
address64
xbee
301
302
parents
execution-time
calculate
case-sensitive
contains
interface-class
abstract-class
ternary
ajax
cancel
oracle12c
xampp
isset
submit
extract
matrix
uno
mega
coupon
print_r
programatically
member
...