I hereby claim:
- I am pikkulahti on github.
- I am pikkulahti (https://keybase.io/pikkulahti) on keybase.
- I have a public key whose fingerprint is 3360 1ADE 8678 8117 7EFD 22D1 9150 EEA0 E781 4B11
To claim this, I am signing this object:
<?php | |
/** | |
* Moves ordered items in draft state. | |
*/ | |
function custom_draft_complete_orders( $order_id ) { | |
// Fetch order infromation | |
$order = new WC_Order( $order_id ); | |
// Get products on order | |
$items = $order->get_items(); | |
foreach( $items as $product ) { |
<?php | |
/** | |
* Moves ordered items in draft state. | |
*/ | |
function custom_draft_complete_orders( $order_id ) { | |
// Fetch order infromation | |
$order = new WC_Order( $order_id ); | |
// Get products on order | |
$items = $order->get_items(); | |
I hereby claim:
To claim this, I am signing this object:
add_filter( 'max_srcset_image_width', __NAMESPACE__ . '\\remove_max_srcset_image_width', 99 ); | |
/** | |
* Reset max srcset image width. | |
* | |
* @param int $max_width The maximum image width to be included in the 'srcset'. Default '1600'. | |
* | |
* @return bool You can return sensible value also this resets to default 1600. | |
*/ | |
function remove_max_srcset_image_width( $max_width ) { | |
return false; |