y3ro / pause_shop Goto Github PK
View Code? Open in Web Editor NEWPause your Woocommerce shop on demand or periodically, manually or programmatically.
License: MIT License
Pause your Woocommerce shop on demand or periodically, manually or programmatically.
License: MIT License
=== Pause shop === Contributors: y3ro Tags: pause shop, stop shop, woocommerce, shop maintenance, disable orders, programmable maintenance mode, read-only mode, remotely configurable, rest endpoints Requires at least: 5.6 Tested up to: 6.2 Stable tag: 0.8.7 License: MIT This is a Wordpress plugin that allows you to pause your Woocommerce shop for a period of time. When paused, your customers will still be able to browse your shop, but they will not be able to add new products to their carts or place orders. == Usage == You can pause your shop using the settings in the plugin's settings page or by using the REST endpoints provided by the plugin, which are documented in the same settings page and also in the following section. There are two types of pause you can use: 1. Scheduled pause: This is a periodic pause that will start and end at specific times. You can set this pause to repeat on a daily, weekly or monthly basis, and also set the starting date. 2. On-demand pause: This is a pause that you can start and end at any time by clicking on the button in the settings page or by using the corresponding REST endpoints. = REST endpoints = The plugin provides the following REST endpoints: * Pause the shop on-demand. ``` POST /wp-json/pause_shop/v0/pause_shop ``` * Unpause the shop on-demand. ``` POST /wp-json/pause_shop/v0/unpause_shop ``` * Check if on-demand pause is on. ``` GET /wp-json/pause_shop/v0/is_on_demand_paused ``` * Check if scheduled pause is on. ``` GET /wp-json/pause_shop/v0/is_scheduled_paused ``` * Set the timezone. ``` POST /wp-json/pause_shop/v0/set_timezone -d "timezone=Europe/London" ``` * Get the timezone. ``` GET /wp-json/pause_shop/v0/get_timezone ``` * Set the scheduled pause begin time. ``` POST /wp-json/pause_shop/v0/set_begin_time -d "begin_time=01:00" ``` * Get the scheduled pause begin time. ``` GET /wp-json/pause_shop/v0/get_begin_time ``` * Set the scheduled pause end time. ``` POST /wp-json/pause_shop/v0/set_end_time -d "end_time=01:30" ``` * Get the scheduled pause end time. ``` GET /wp-json/pause_shop/v0/get_end_time ``` * Set the scheduled pause periodicity. ``` POST /wp-json/pause_shop/v0/set_periodicity -d "periodicity=monthly" ``` * Get the scheduled pause periodicity. ``` GET /wp-json/pause_shop/v0/get_periodicity ``` * Set the begin date for the scheduled pause. ``` POST /wp-json/pause_shop/v0/set_begin_date -d "begin_date=2020-01-01" ``` * Get the begin date for the scheduled pause. ``` GET /wp-json/pause_shop/v0/get_begin_date ``` * Enable the scheduled pause. ``` POST /wp-json/pause_shop/v0/enable_scheduled_pause ``` * Disable the scheduled pause. ``` POST /wp-json/pause_shop/v0/disable_scheduled_pause ``` * Check if the scheduled pause is enabled. ``` GET /wp-json/pause_shop/v0/is_scheduled_pause_enabled ``` == License == This plugin is licensed under the MIT License. See the LICENSE file for more details. == Donations == If you like this plugin and want to support its development, you can buy me a coffee at [Ko-fi](https://ko-fi.com/y3ro752694). <a href="https://ko-fi.com/y3ro752694" target="_blank"> <img height="36" style="border:0px;height:36px;" src="https://cdn.ko-fi.com/cdn/kofi1.png?v=2" alt="Buy me a coffe if you like this repo" /> </a>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.