Temporary access to page with URL sent to email
The users could be sent a link with parameters: “{url}/booking0914?token=zxy321” Your action hook would allow users with the correct token to proceed. Others would be redirected.
The users could be sent a link with parameters: “{url}/booking0914?token=zxy321” Your action hook would allow users with the correct token to proceed. Others would be redirected.
WooCommerce free shipping twice a week
How to track product price changes?
Check this setting, WooCommerce > Settings > General. If that isn’t it check that you don’t have a plugin installed that is effecting it. Disable them one at a time and check.
With the wp_login hook the logged in user might not be set as the current user yet, so instead of using wp_get_current_user(), use the user object that’s passed to the hook callback. Then you can be certain that you’re setting the role on the correct user, rather than relying on the global state, which is … Read more
Yes and no. Servers only have so many resources to work with, and bulk edits are expensive requests. Lets take an analogy: You’re a secretary, and somebody asks you to modify modify the title of 400 reports. Doing it once might take 2 seconds, but 400×2 is 800 seconds or ~14 minutes. Another part of … Read more
Finally find my solution after a few day. In case someone try to do the same function test_expired_product(){ $id = get_the_ID(); $post_status = get_post_status($id); $terms= array(‘cursus-annuel’); if ($post_status === ‘expired’ || $post_status === ‘canceled’) { //echo $id; // working //echo $post_status; // working add_filter(‘woocommerce_is_purchasable’, ‘__return_false’); add_action( ‘woocommerce_single_product_summary’, ‘expired_product_message’, 20 ); return; } if( has_term( $terms, … Read more
Is it possible to echo a woocommerce prouct attribute discription?
This is an issue with the WooCommerce plugin. As of the 3.7.0 version the My Account > Orders page uses an inefficient query to get the customer’s orders. With 200,000 orders in the store you probably have 50x that many rows in the wp_postmeta table. I just encounterd this same issue on a site with … Read more
AJAX to add to cart multiple products woocommerce