Admin Top Bar Not Showing On Front End

It certainly can be a theme related ‘problem’. To prevent unexpected problems in a theme, I frequently disable the admin bar while working on it. Look in functions.php (or similar) for code that looks like this and remove it: function my_function_admin_bar() { return false; } add_filter(‘show_admin_bar’, ‘my_function_admin_bar’);

Hide admin toolbar based on a query string

You should be able to just add the filter inside of a conditional: <?php if ($_GET[‘hidetoolbar’]) { add_filter(‘show_admin_bar’, ‘__return_false’); } ?> or, since conditionally adding action handlers and filters is sometimes frowned upon, you could add your own function as a filter and then put your conditional inside that: <?php function my_manage_toolbar() { if ($_GET[‘hidetoolbar’]) … Read more

Adding CSS to custom post type admin page causes error

You need to check for the presence of ‘post_type’ as an index of $_GET before using it: if ((isset($_GET[‘post_type’]) && $_GET[‘post_type’] == ‘slide’) || (isset($post_type) && $post_type == ‘slide’)) : Also, you should be using the wp_enqueue_style function instead of echoing your stylesheet at ‘admin_head’: wp_enqueue_style( ‘meteor-slides-admin’, plugins_url(‘/css/meteor-slides-admin.css’, __FILE__), array(), ‘1.0’ ); More information on … Read more

500 internal server error on wp-admin only

500 can be caused due to these -> Corrupted WP core files Corrupted .htaccess files Problematic plugins PHP memory limit issues Problematic theme As you already I have re-copied the .htaccess file and put in what WordPress recommended. I have stripped the plugins from the site through FTP. I think Upload fresh copy of wp-admin … Read more

How to Update the Order-Items While Editing an Order on the WooCommerce Admin Order Screen [closed]

The woocommerce_order_before_calculate_totals hook executes in the Edit Order admin screen when an item is changed or the ‘recalculate’ button is pressed. This allows you to loop through each item and fee in the order and edit as required. I have a fee called ‘Deposit’ which I update if it exists or I add if it … Read more

Sync User to cPanel webmail?

You would have to write this from scratch but it is entirely possible. cPanel webmail is already configured to work with Horde, Roundcube and SquirrelMail which are all open source and very well documented. The main issue that wouldn’t make it seamless is that cPanel uses exim4 as an email server and there would be … Read more