Skip to content

Instantly share code, notes, and snippets.

@chrismademe
chrismademe / style.11ty.js
Created December 21, 2021 14:00
Compile SCSS in 11ty
const sass = require('sass');
const cleanCSS = require('clean-css');
module.exports = class {
data() {
return {
layout: false,
permalink: '/style.css',
eleventyExcludeFromCollections: true,
};
@chrismademe
chrismademe / disable-wc-checkout.php
Created April 6, 2022 12:02
Disable WooCommerce Checkout
<?php
add_action( 'init', function() {
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', 'resknow_show_checkout_disable_notice', 5 );
add_action( 'woocommerce_before_cart', 'resknow_show_checkout_disable_notice', 5 );
@chrismademe
chrismademe / blocks.txt
Created March 12, 2024 15:12
List of WordPress Block Editor / Gutenberg Core Blocks
# Last updated: 12th March 2024
#
# Note: This is a list from the Gutenberg repo so these
# may not all be in the Core Block Editor at the time
# of writing
archive
audio
block
button