little bit complicated question
if i use filter :
function custom_wc_ajax_variation_threshold( $qty, $product ) { return 10; } add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 10, 2 );
how much is max variations can i make
for example can i make 2000?
if someone test please tell me
thanks in advance
]]>Our site is nearing #9999 in terms of unique user IDs.
I would assume that, when exceeding 4 digits, WordPress automatically adds a 5th and there is really nothing to be done on our end.
]]>
we have a lot of media on our site (several thousand) and are looking to optimize the library with EWWW.
Currently the site creates -scaled.jpg
versions at the default 2560
when we upload larger images. We want to set a new max size of 2048
and apply this to both new images and old images.
Out of a few thousand posts, we have 427 posts that use these -scaled.jpg
versions
EWWW lets us set a maximum width/height.
WordPress lets us also set a maximum threshold usingadd_filter('big_image_size_threshold', ......
and remove the 2048x2048
and 2560x2560
sizes using eg remove_image_size('2048x2048')
or filtering on intermediate_image_sizes_advanced
When I tried to combine these I ended up breaking the image. The -scaled.jpg
version became the new “original” on the attachment screen – (even though the original is still on disk)… I couldn’t get it to show this:File name: original-scaled.jpg
Original: original.jpg
(this part disappeared)`
ie it loses the connection to the original image… meaning thumbnails now got regenerated as original-scaled-150x150.jpg
etc rather than original-150x150.jpg
etc
I think messing with the max image size threshold confused it when running “Regenerate Thumbnails” plugin
Again we are just trying to reduce the original.jpg
version to 2048×2048 max on upload. There would be no reason for the original-scaled.jpg
version presumably at this point, but since they are 427 posts with -scaled
versions attached, it would see we can’t just remove the scaled versions entirely.
Is there a way to run EWWW & Regenerate Thumbnails in a way that
1) resizes all originals to 2048x2048
max
2) understands pointing the -scaled
(default 2560x2560
max) versions already attached to posts back to the original image which should now be 2048x2048
max
thanks
J.
Idea (example):
Max published post: 50
Published post expire after: 30 days
All post submited after the max limit is reached goes with Draft or Pending status. (waiting list)
A cron task to check periodicly if there is a free slot (<50 published post..) to change the status to published for the next post from the waiting list.
DATE 1
Ticket Choice 1: four guests
Ticket Choice 2: six guests
Ticket Choice 3: eight guests
DATE 2
Ticket Choice 1: four guests
Ticket Choice 2: six guests
Ticket Choice 3: eight guests
DATE 3
Ticket Choice 1: four guests
Ticket Choice 2: six guests
Ticket Choice 3: eight guests