939 reputation
718
bio website visztpeter.me
location
age
visits member for 3 years, 10 months
seen Jul 3 at 14:13

Jul
1
comment How to remove a product from an order id WooCommerce?
wc_delete_order_item should work fine, just make sure to use the order item ID, not the item ID
Jun
30
comment taxonomy query on front page
Just to make sure... Do you have a page called Dogs, and a child page Poodles?
Jun
30
comment How to check if a product is purchased within the last 365 days before displaying something
No need, thanks for following my blog:)
Jun
29
revised How to check if a product is purchased within the last 365 days before displaying something
Fixed a php warning
Jun
29
comment How to check if a product is purchased within the last 365 days before displaying something
Hi! I updated the code, the issue was in this line: ` $customer_bought = $item['product_id']; ` and should be replaced with $customer_bought[] = $item['product_id']; The rest of the code is fine:)
Jun
28
revised How to check if a product is purchased within the last 365 days before displaying something
added 96 characters in body
Jun
28
answered How to check if a product is purchased within the last 365 days before displaying something
Jun
26
comment Show different content in the same URL
I don't think its a good SEO idea to change the content of the same url daily.
Jun
25
answered Search WooCommerce Products in WordPress
Jun
25
comment update GST value in woocommerce
Tell me if i'm wrong, but isn't GST is some kind of a tax which is calculated by WooCommerce based on Settings / Tax options? So you can edit your rates there to update the GST amount.
Jun
24
answered Display inner pages like posts.[Like how post excerpt works]
Jun
23
revised Order By Multiple Meta Fields
added 422 characters in body
Jun
23
comment Order By Multiple Meta Fields
Yep, sorry, i understand your question now. You can pass an array into orderby in WP_Query to specify a fallback order if the default one wont work. I updated the code. Not sure if this would work for you, i tried it with a couple of posts but obviously i can't replicate the exact stuff you're trying to do.
Jun
23
revised Output column number according to active sidebars
deleted 3 characters in body
Jun
23
accepted How to disable user registration for the default subscriber user role?
Jun
23
answered Order By Multiple Meta Fields
Jun
23
answered Output column number according to active sidebars
Jun
16
asked How to disable user registration for the default subscriber user role?
Jun
14
comment Have I been hacked? Mysterious code at the top of theme files
Yep! Remove the malicious code, update your WordPress, Plugins, Theme, change your admin passwords, change database/ftp passwords, change the salts in wp-config.php, install WordFence and scan your site for more issues.
Jun
14
comment WP AJAX is not working, always returns 0
Add add_action('wp_ajax_nopriv_setAsyncCheckProduct', [$this, 'setAsyncCheckProduct']); too inside assignAsyncEvents()