I hereby claim:
- I am aaemnnosttv on github.
- I am aaemnnosttv (https://keybase.io/aaemnnosttv) on keybase.
- I have a public key ASDP8nGBRCckhApflbk_o4CWjs7CTtz4r5ZcLzP_jmSEvwo
To claim this, I am signing this object:
pagelines_before_html | |
<html> | |
<head> | |
pagelines_head | |
wp_head | |
pagelines_head_last | |
</head> | |
<body> | |
pagelines_before_site | |
<div id="site"> |
<?php | |
if ( file_exists( WPMU_PLUGIN_DIR . '/dev-debug/dev-debug.php' ) ) | |
require_once ( WPMU_PLUGIN_DIR . '/dev-debug/dev-debug.php' ); |
<?php | |
if ( ! function_exists('call_shortcode') ) : | |
/** | |
* Helper function for calling a shortcode directly | |
* | |
* Rather than `echo do_shortcode('[foo bar=the]')` ... | |
* | |
* echo call_shortcode('foo', ['bar' => 'the']); |
require: | |
- vendor/autoload.php |
<?php | |
/** | |
* Plugin Name: Soft disable all WP plugins | |
* Author: Evan Mattson (@aaemnnosttv) | |
* Description: Allows all plugins to be softly disabled and re-enabled using a single constant. | |
* Version: 1.0 | |
* | |
* Usage: Install this under mu-plugins/, and define('SOFT_DISABLE_PLUGINS', true) to soft disable all plugins. | |
* Delete/comment-out the constant definition or set to false to restore all plugins to their previous active states. | |
* |
<?php | |
if ( ! function_exists('__return') ) : | |
/** | |
* Simple return callback generator | |
* | |
* @param null $return | |
* @return Closure | |
*/ | |
function __return($return = null) { | |
return function() use ($return) { |
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Effect": "Allow", | |
"Resource": "arn:aws:s3:::*" | |
}, | |
{ |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> | |
html { |
<?php | |
/** | |
* There are many possible ways to set this, but it can only be defined once. | |
* | |
* Using an environment variable by the same name | |
* define( 'WP_ENV', getenv( 'WP_ENV' ) ); | |
* | |
* Matching the hostname | |
* define( 'WP_ENV', 'example.com' == $_SERVER['SERVER_NAME'] ? 'production' : 'staging' ); | |
*/ |