/**
* @snippet WooCommerce Holiday/Pause Mode
* @how-to Get CustomizeWoo.com FREE
* @sourcecode https://businessbloomer.com/?p=20862
* @author Rodolfo Melogli
* @testedwith WooCommerce 3.5.1
*/
// Trigger Holiday Mode
add_action ('init', 'bbloomer_woocommerce_holiday_mode');
// Disable Cart, Checkout, Add Cart
function bbloomer_woocommerce_holiday_mode() {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );
remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 );
add_action( 'woocommerce_before_main_content', 'bbloomer_wc_shop_disabled', 5 );
add_action( 'woocommerce_before_cart', 'bbloomer_wc_shop_disabled', 5 );
add_action( 'woocommerce_before_checkout_form', 'bbloomer_wc_shop_disabled', 5 );
}
// Show Holiday Notice
function bbloomer_wc_shop_disabled() {
wc_print_notice( 'SKLEP W FERIE NIECZYNNY :)', 'error');
}
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-content/themes/twentytwenty/functions.php:1) in /home/klient.dhosting.pl/paweltuga/pacynki.dfirma.pl/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1378
{"id":108,"date":"2020-12-03T01:51:08","date_gmt":"2020-12-03T00:51:08","guid":{"rendered":"http:\/\/pacynki.pl?page_id=108"},"modified":"2020-12-08T23:29:01","modified_gmt":"2020-12-08T22:29:01","slug":"o-pracowni","status":"publish","type":"page","link":"https:\/\/pacynki.pl\/o-pracowni\/","title":{"rendered":"o pracowni"},"content":{"rendered":"\n
Autorka pacynek, pani Hanna Ko\u015bmicka, zmar\u0142a w roku 2019.<\/p>\n\n\n\n
Pozostawi\u0142a po sobie pe\u0142ne szuflady lepiej lub gorzej opisanych wykroj\u00f3w, dziesi\u0105tki pojedynczych wzor\u00f3w i prototyp\u00f3w, ca\u0142e szafy pacynek cz\u0119\u015bciowo uko\u0144czonych oraz przede wszystkim grono wieloletnich pracownic, dla kt\u00f3rych wsp\u00f3\u0142praca z ni\u0105 by\u0142a wa\u017cnym \u017ar\u00f3d\u0142em utrzymania.<\/p>\n\n\n\n
Zostawi\u0142a te\u017c po sobie wielu sta\u0142ych odbiorc\u00f3w – w\u015br\u00f3d nich przedszkola, biblioteki, teatry i szko\u0142y j\u0119zykowe, ale przede wszystkim indywidualnych odbiorc\u00f3w, cz\u0119sto uzupe\u0142niaj\u0105cych swoje latami tworzone kolekcje.<\/p>\n\n\n\n
Aby nie zaprzepa\u015bci\u0107 tego wszystkiego spadkobiercy pani Hanny podj\u0119li decyzj\u0119 o kontynuowaniu dzia\u0142alno\u015bci pracowni. Obecnie funkcjonuje ona jako firma w spadku, prowadzona przez syna pani Hanny, Paw\u0142a Ko\u015bmickiego, architekta. <\/p>\n\n\n\n
Poza bie\u017c\u0105cym funkcjonowaniem staramy si\u0119 porz\u0105dkowa\u0107 archiwum pracowni, skatalogowa\u0107 i opisa\u0107 zachowane wzory i wykroje oraz zapisa\u0107 “przepisy” na pacynki – ocali\u0107 ile si\u0119 da z ogromnego “know-how” autorki. Pracujemy nad przygotowaniem monografii autorki.<\/p>\n","protected":false},"excerpt":{"rendered":"
Autorka pacynek, pani Hanna Ko\u015bmicka, zmar\u0142a w roku 2019. Pozostawi\u0142a po sobie pe\u0142ne szuflady lepiej lub gorzej opisanych wykroj\u00f3w, dziesi\u0105tki pojedynczych wzor\u00f3w i prototyp\u00f3w, ca\u0142e szafy pacynek cz\u0119\u015bciowo uko\u0144czonych oraz przede wszystkim grono wieloletnich pracownic, dla kt\u00f3rych wsp\u00f3\u0142praca z ni\u0105 by\u0142a wa\u017cnym \u017ar\u00f3d\u0142em utrzymania. Zostawi\u0142a te\u017c po sobie wielu sta\u0142ych odbiorc\u00f3w – w\u015br\u00f3d nich przedszkola, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/pages\/108"}],"collection":[{"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":2,"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/pages\/108\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/pages\/108\/revisions\/425"}],"wp:attachment":[{"href":"https:\/\/pacynki.pl\/wp-json\/wp\/v2\/media?parent=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}