yoyoma1974
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Orders – Bulk actions does not include change status to pendingActually I found code someone else was using to add a custom order status to the bulk actions, and I just replaced the custom status name with pending and it seems to work. For others that might need it here it is:
add_filter( 'bulk_actions-edit-shop_order', 'misha_register_bulk_action' ); // edit-shop_order is the screen ID of the orders page function misha_register_bulk_action( $bulk_actions ) { $bulk_actions[ 'pending' ] = 'Change status to pending'; // <option value="mark_awaiting_shipping">Change status to pending</option> return $bulk_actions; } add_action( 'handle_bulk_actions-edit-shop_order', 'misha_bulk_process_custom_status', 20, 3 ); function misha_bulk_process_custom_status( $redirect, $doaction, $object_ids ) { if( 'pending' === $doaction ) { // change status of every selected order foreach ( $object_ids as $order_id ) { $order = wc_get_order( $order_id ); $order->update_status( 'pending' ); } // do not forget to add query args to URL because we will show notices later $redirect = add_query_arg( array( 'bulk_action' => 'pending', 'changed' => count( $object_ids ), ), $redirect ); } return $redirect; } add_action( 'admin_notices', 'misha_custom_order_status_notices' ); function misha_custom_order_status_notices() { if( isset( $_REQUEST[ 'bulk_action' ] ) && 'pending' == $_REQUEST[ 'bulk_action' ] && isset( $_REQUEST[ 'changed' ] ) && $_REQUEST[ 'changed' ] ) { // displaying the message printf( '<div id="message" class="updated notice is-dismissible"><p>' . _n( '%d order status changed.', '%d order statuses changed.', $_REQUEST[ 'changed' ] ) . '</p></div>', $_REQUEST[ 'changed' ] ); } }
Forum: Plugins
In reply to: [WooCommerce] Orders – Bulk actions does not include change status to pendingThanks, yes I know I can change to Pending manually but I will need to do this for many orders so I was hoping there was a way to do it in bulk.
Tim
Forum: Plugins
In reply to: [Mortgage Calculators WP] Asked for Support for Paid Plugin, NO Responsesorry, ignore my comment, I worked it out.
Tim
- This reply was modified 1 year, 9 months ago by yoyoma1974.
Forum: Plugins
In reply to: [Postie] gMail Connected Users might lose connection on May 30, 2022Hss this been resolved now? “I will release a version that is compatible with the new Google mandate” Is the latest version compatible?
Thanks,
Tim
- This reply was modified 2 years, 5 months ago by yoyoma1974.
Yes, I assumed this is how it worked. With!out it it’s not useful for my needs. Please add this feature. Thanks
Forum: Plugins
In reply to: [Multiple Post Passwords] Password not expiring after timeSo the password won’t actually expire unless “Delete used paswords” is selected?
Forum: Plugins
In reply to: [Multiple Post Passwords] Password not expiring after timeAlso, I didn’t select “Delete used passwords”
Forum: Plugins
In reply to: [Multiple Post Passwords] Password not expiring after timeYes, I waited a few hours and the page was still accessible. Maybe I am not understanding what happens after the time limit… the page should no longer be accessible to the user that used that password, right?
Dude, I know I can exclude your file from CSS minification… my point is minifying a CSS file should not break the frontend of it. This makes no sense, it’s just stripping out the white space. Maybe the issue is on your end?
Tim
Weird, it’s suddenly working, but I didn’t change anything.
I don’t even see a place to add snippet placement logic… am I missing something.
Also Woody is working for a js snippet I am using.
I just want to improve the page load time of my site, so on pages where I don’t need the 5 or 10 ecwid/store scripts I’d like to remove them, if possible.
Tim
What does that mean?