How to Remove Logo from WordPress Admin Bar
You Want to remove WordPress logo from WordPress admin bar? Add the following code to the functions.php.
You Want to remove WordPress logo from WordPress admin bar? Add the following code to the functions.php.
If one a product is already in cart, displaying a different text instead of “Add to Cart” text for “add_to_cart” button is a nice idea.
How can we add +(Plus) & -(Minus) buttons to the quantity input on the product page in WooCommerce?
Sometime we need to login in site without reloading the page.so we simply use ajax for it. first we add login form in html than register a ajax path and than use jquery execute process. 1. Form Html using wp_footer hook # add ajax login form to page <?php add_action(“wp_footer”, “CustomLoginHtml”); function CustomLoginHtml() { if (!is_user_logged_in()) { $actual_link = (isset($_SERVER[“HTTPS”]) ? “https” : “http”) . “://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”; ob_start(); ?> <form id=”login” class=”buyback-ajax-auth” action=”login” method=”post”> <div class=”title-text”>Login</div> <p class=”status”></p> <?php echo wp_nonce_field( “ajax-login-nonce”, “security”, true, false ); ?> <label for=”username”>Username</label> <input id=”username” type=”text” class=”required” name=”username”> <label for=”password”>Password</label> <input id=”password” type=”password” class=”required” name=”password”> <div class=”cf”> <input class=”submit_button” type=”submit” value=”LOGIN”> </div> <a class=”login_close” href=””>×</a> <input id=”redirectto” type=”hidden” value=”‘.$actual_link.'”> </form> <?php echo ob_get_clean(); } } 2. Ajax Define <?php add_action(“wp_ajax_nopriv_ajaxlogin”, “ajax_login”); function ajax_login() { check_ajax_referer(“ajax-login-nonce”, “security”); auth_user_login($_POST[“username”], $_POST[“password”], “Login”); die(); } function auth_user_login($user_login, $password, $login) { $info = []; $info[“user_login”] = $user_login; $info[“user_password”] =
We Are Web developer and Adding a Tab in WooCommerce My Account page with custom content is one of the most common customization requests which we receive From The clients.
How To Set Dynamic Pricing Of Product According To Quantity?. In this post we will set price according to product quantity.
How to change default sender name and email in outgoing WordPress email?
Want to remove specific WooCommerce product from a cart?
WooCommerce provide ‘WC()->cart->remove_cart_item(string $cart_item_key)’ function to remove a product from cart. if we go through WooCommerce Documentation , wewill find that it accepts cart_item_key as parameter.
How To Add New Html Field On Add/Update Product Form?
How To Add/Update Value Of Custom Added Html Field Into Product Meta?
Add custom product tabs in WooCommerce