This file contains 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
<?php | |
/** | |
* Plugin Name: Development Environment Preventions | |
* Description: MU-plugin to prevent production functionality on development sites. | |
* Plugin URI: https://gist.github.com/crstauf/793d8d70dd6d2572e698f8b46ab6316b | |
* Author: Caleb Stauffer | |
* Author URI: https://develop.calebstauffer.com | |
*/ | |
$production_site_url = '{PRODUCTION SITE URL}'; |
This file contains 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
<?php | |
/** | |
* Plugin URI: https://gist.github.com/crstauf/0180b506e43f9e3d8730b995afb11849 | |
* Author: Caleb Stauffer | |
* Author URI: https://develop.calebstauffer.com | |
*/ | |
defined( 'WPINC' ) || die(); | |
if ( ! defined( 'INIT_GITHUB_ACTION_TOKEN' ) || ! constant( 'INIT_GITHUB_ACTION_TOKEN' ) ) { |
This file contains 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
<?php | |
/** | |
* Classes for image tag elements. | |
* | |
* @version 0.0.7.0 | |
* @link https://gist.github.com/crstauf/030df6bd6c436620e96cb92a44c9772f | |
*/ | |
if ( !defined( 'ABSPATH' ) || !function_exists( 'add_filter' ) ) { | |
header( 'Status: 403 Forbidden' ); |
This file contains 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
<?php | |
/** | |
* Description: MU-Plugin of CLI command to purge WooCommerce data. | |
* Plugin URI: https://gist.github.com/crstauf/0917df51455efa1a61058c050565fe72 | |
* Author: Caleb Stauffer | |
* Author URI: https://develop.calebstauffer.com | |
*/ | |
if ( !defined( 'WP_CLI' ) || !WP_CLI ) | |
return; |
This file contains 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
<?php declare( strict_types=1 ); | |
/** | |
* Plugin name: CSSLLC Gravity Forms JavaScript Prepopulation | |
* Plugin URI: https://gist.github.com/crstauf/5b6da3b818221ec0b408ae70a1cca232 | |
* Description: Populate Gravity Forms with dynamic population via JavaScript. | |
* Author URI: https://develop.calebstauffer.com | |
* Author: Caleb Stauffer | |
* Version: 1.0 | |
*/ |
This file contains 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
<?php | |
// CSS LLC emergency.php | |
// version 1.0.0 | |
define('WP_DEBUG', true); | |
define('SECONDS_TO_EXPIRE',180); | |
define('EXPIRES_AT',filemtime(__FILE__) + SECONDS_TO_EXPIRE); | |
$files = array('wp-blog-header.php', 'wp-admin/includes/template.php', 'wp-admin/includes/user.php'); |
This file contains 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
.icon--play { | |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%231F1F1F' d='M255.7 446.3c-53.3.3-106.6-.4-159.8-3.3-17.4-1-34.7-2.5-50.4-11C35 426.3 27 418.4 22 407.2 13.2 388.6 10.5 369 9 349c-3.4-41.3-3.6-82.6-1.8-123.8 1-22 1.6-44 6.8-65.5 2-8.4 5-16.6 8.8-24.4C32 117 48 108 67.3 104c16.2-3 32.8-3 49.3-3.7 56-2.3 112-3.5 168-3 43 .6 86.2 1.7 129.3 4 13.2.6 26.6.8 39.3 5.5 17.2 6.4 30 17.2 37 34.7 6.6 16.8 9.2 34.2 10.6 52 3.8 48.7 4 97.3.7 146-1 16.3-2.2 32.7-6.5 48.8-9.7 37-32.8 51.5-66.7 53.8-36.2 2.5-72.5 3.8-108.8 4.3-21.3.2-42.7 0-64 0zM203.2 344L348 264.7l-144.8-79.3V344z'/%3E%3Cpath fill='%23FEFDFD' d='M203.2 344V185.5L348 264.8 203.2 344z'/%3E%3C/svg%3E"); | |
} | |
.icon--play:hover { | |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23DD2C28' d='M255.7 446.3c-53.3.3-106.6-.4-159.8-3.3-17.4-1-34.7-2.5-50.4-11C35 426.3 27 418.4 22 407.2 13.2 388.6 10.5 369 |
This file contains 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
<?php | |
/** | |
* Plugin Name: WP CLI Flush Cloudflare Cache | |
* Description: Register a WP CLI command to flush Cloudflare cache. | |
* Author: Caleb Stauffer | |
* Author URI: https://develop.calebstauffer.com | |
* Plugin URI: https://gist.github.com/crstauf/07725140a81b88f331dc8c3c76d8bf1d | |
*/ | |
if ( !defined( 'WP_CLI' ) || !WP_CLI ) |
This file contains 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
<?php | |
if ( !defined( 'WP_CLI' ) || !WP_CLI ) | |
return; | |
if ( !function_exists( 'wpcli_flush_cloudflare_cache' ) ) { | |
function wpcli_flush_cloudflare_cache( array $args, array $assoc_args ) : void { | |
$zone_id = WP_CLI\Utils\get_flag_value( $assoc_args, 'zone_id', constant( 'CLOUDFLARE_ZONE_ID' ) ); | |
$email_address = WP_CLI\Utils\get_flag_value( $assoc_args, 'email', constant( 'CLOUDFLARE_EMAIL_ADDRESS' ) ); |
This file contains 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 | |
################################################################## | |
## Set GitHub username and personal access token and uncomment. ## | |
################################################################## | |
# GitHub username | |
# user= | |
# GitHub personal access token |
NewerOlder