how to use php in custom toolbar form

One option you have is to use JS to create cookies that store the entered information. Here is an article that explains how to do this. The cookies will last even if a form fails to submit. Just make sure you delete the cookies after you use them. I believe it is a security risk … Read more

Signed-in as admin on just part of the site

I discovered that by adding a call to get_currentuserinfo(); in header.php the problem appears to be solved. I still do not know why it happened, but at least this is a working solution for anyone else who happens to have this problem. Note: Following @jgraup’s suggestion above, I’m posting this as an answer. However, I … Read more

Admin Bar items active only on plugin page

Figured it out function add_toolbar_items($admin_bar){ if(‘profile’ == get_post_type()) $admin_bar->add_menu( array( ‘id’ => ‘main-title’, ‘title’ => ‘Targeting’, )); } add_action(‘admin_bar_menu’, ‘add_toolbar_items’, 100);

disable wp admin bar for customers logged in

If you look at user profile in WordPress administration you would see that there is an option: Show Toolbar when viewing site. If you uncheck this option user will not see an admin bar. This option is checked by default when user is registering to your store. You can disable it using user_register filter. function … Read more