Skip to content

Instantly share code, notes, and snippets.

@codetot
codetot / config.yml
Created October 14, 2021 07:42
CircleCI config for different task run by branch name
workflows:
version: 2
build_and_test:
jobs:
- test_code:
filters:
branches:
only: /(feature|bugfix|hotfix)\/?(.*)/
- build_assets:
filters:
@codetot
codetot / wp-custom-block.md
Last active October 27, 2021 07:15
WP Custom Block Explain
// edit.js
import { __ } from '@wordpress/i18n';
import { useBlockProps, InspectorControls } from '@wordpress/block-editor';
import { TextControl, TextareaControl, PanelBody, ToggleControl } from '@wordpress/components';
import { useState, useEffect } from '@wordpress/element';
import './editor.scss';


export default function Edit({ attributes, setAttributes }) {