Skip to content

Instantly share code, notes, and snippets.

@Prophe1
Prophe1 / deploy.sh
Created June 11, 2019 15:14
Deploy project(Sage, Bedrock) with CircleCI to Kinsta
#! /bin/bash
if [ -z "$1" ]
then
echo "No branch supplied"
exit 1
fi
if [ -z "$2" ]
then
@Prophe1
Prophe1 / text-widget-tables.js
Last active April 3, 2019 17:00
WordPress Text Widget Tables
/* eslint-disable */
// In order to make this script work, You need to enqueue this in admin area
// Place code belllow in Your mu-plugin/plugin or theme functions file
//
// add_action( 'admin_enqueue_scripts', function () {
// wp_enqueue_script(SCRIPT_SLUG_NAME, URL_PATH_TO_SCRIPT, ['jquery'], null, true);
// }, 100);
jQuery(document).on('tinymce-editor-setup', function (event, editor) {
@Prophe1
Prophe1 / config.yml
Last active August 18, 2022 14:50
CircleCI + WPEngine + SAGE
# Continuous Integration to a WP Engine install
# PHP CircleCI 2.0 configuration file
#
# You need to generate and add SSH key to CircleCI project SSH Permissions tab
# And then copy fingerprint and replace YOUR_SSH_KEY with it. Also same Key must be added to WPEngine's project SSH tab.
# After, You need to add environtmen varriables WP_THEME_DIR - theme directory and WPE_INSTALL -
# WPEngine install name/slug. You need to have .gitignores folder with two files (__default and __production)
# __default means that it will be used in local develoment, and __production will be used when pushing to WPEngine
version: 2