This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
if [ -z "$1" ] | |
then | |
echo "No branch supplied" | |
exit 1 | |
fi | |
if [ -z "$2" ] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |