Skip to content

Instantly share code, notes, and snippets.

@gcsecsey
gcsecsey / README.md
Last active September 2, 2023 13:04
WooCommerce quick edit schedule product

WooCommerce quick edit schedule product

This small script updates the product date and unsets the private checkbox, scheduling the product for a specific date in the future. I made this because I couldn't find a quicker way to bulk schedule products (none of the WooCommerce bulk product editor plugins support this), but I need to do this for a lot of products at a time as we rotate seasonal products in the shop.

How to use

  • Add snippet.js as a snippet in Chrome dev tools, update the date and time

  • Go to the products list and click on the Quick Edit option

    CleanShot 2023-09-02 at 13 59 42@2x
  • Run the snippet from devtools, it will update these fields and save the product

@gcsecsey
gcsecsey / jetpack.json
Last active December 5, 2023 10:52
WP projects workbench colors
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#057e06",
"titleBar.inactiveBackground": "#045e05",
"titleBar.activeForeground": "#ffffff",
"titleBar.inactiveForeground": "#cccccc"
}
}
@gcsecsey
gcsecsey / copy_rendered_link_userscript.js
Created April 25, 2024 07:55
Userscript for copying current page title and URL as a link