if ( ! current_user_can( 'manage_options' ) ) { show_admin_bar( false ); }
Archive by Author: Tom
Hide the Admin Bar in WordPress for all users
add_filter( 'show_admin_bar', '__return_false' );
Change "Order Now" button text in WooCommerce
add_action( 'woocommerce_order_button_text', 'change_checkout_text' ); function change_checkout_text() { return "Place Order"; }
Check if WordPress frontend is attempting to be displayed
/* * is_frontend() * * @return boolean */ function is_frontend() { return ( ! is_admin() || wp_doing_ajax() ); }
Remove the Sorting Drop-Down from WooCommerce
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );