I am trying to clear the billing_po_no field value from my WooCommerce checkout billing Form, by adding the following code into my functions.php file: But it does not appear to be working. Can someone point me in the right direction? Answer Try the following instead: Code goes in functions.php file of the act…
Tag: wordpress
Edit The Src Of a Image
HTML Code Whta I Need: I just want to remove (-300×203) from the src. Is this possible using js or PHP or any other language I want to implement this code in WordPress? Answer Put this script on page
WordPress json_encode and json_decode with quotes, slashes, emojis
I have a data array such as Now, the title/options can have special characters such as “quotes” and also ‘single ones’, along with maybe/slashes as well or emojis. Unfortunately, upon adding these to the data and encoding, I can’t decode it. Well, rather, WordPress just returns e…
Remove out of stock products from WooCommerce related products custom WP query
hello I want to show related products based on my custom query but I just want to show ‘in_stocks’ products and meta_query not working with tax_query. anyone can help me? $query_args = array( ‘…
WordPress Plugin JS remove version
Hello I want to include my js file without adding ?ver=x.x.x to it I tried all the solutions but nothing help me to get the success Here is my Code I am trying to add add_action( ‘wp_enqueue_scripts’, …
WooCommerce Price Filter – trigger on change instead of submit
Does anyone know how I can customize the WooCommerce price filter widget to filter on a ‘change’ trigger instead of having the submit button? It is located in templates/content-widget-price-filter.php – but since it is made as a form, does that mean I HAVE to use a submit button to trigger t…
Add an email attachment to WooCommerce notifications based on product category
For some of my product I need to send an additional pdf (not an invoice) to my customers. With the help of this post: https://wordpress.org/support/topic/attach-pdf-to-confirmation-email-for-specific-product/ I was able to attach an attachment to every order confirmation email. Then I tried to change the code…
Automatically generate username based on user ID in WooCommerce
I’m working on a WooCommerce project where each user have an ID number. I would like to use the default WooCommerce username field for this user ID. When creating an account, can I automatically generate an account username for the customer based on their user ID? Example: User ID = 101, Auto generated …
How do I get the site id in the same function that created the site?
I’m writing some php functions to work off of endpoints, specficially one that takes the input of a form to create a site within a wp multi-site. In terms of progress, the code below will take the input and create a site with the correct path and domain, but none of the meta information is being added. …
Hiding element (row) in woocommerce account page
I want to hide one row in the table on account page in woocommerce. This item is called ‘end’ or ‘end date’ in the table class = shop_table subscription_details. https://github.com/wp-premium/woocommerce-subscriptions/blob/master/templates/myaccount/subscription-details.php How can I d…