####lsauer.com
###Overview of all chrome://
pages.
- List by calling
chrome://about/
- Following is a direct dump from the 'about' page for reference
###List of Pages as per v20.xxx
<?php | |
/** | |
* Basic configuration for multiple DFP JS ad tags in Ad Code Manager | |
* | |
* Our ad units are named 'test_ad_300x250' and 'test_ad_728x90' | |
* Our DFP ID is 12345678 | |
* Our ad slot IDs will be automatically created | |
* | |
*/ |
<?php | |
add_action( 'init', 'x_maintenance_mode' ); | |
function x_maintenance_mode() { | |
if ( defined( 'X_MAINTENANCE_MODE' ) && true === X_MAINTENANCE_MODE ) { | |
if ( is_super_admin() && is_admin() ) | |
return; | |
die( 'Site is currently under maintenance' ); |
####lsauer.com
###Overview of all chrome://
pages.
chrome://about/
###List of Pages as per v20.xxx
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
<?php | |
# Spotify | |
wp_embed_register_handler( 'spotify', '#https?://open\.spotify\.com/.*#', 'spotify_embed_handler' ); | |
add_shortcode( 'spotify', 'spotify_shortcode' ); | |
if ( get_option('embed_autourls') ) | |
add_filter( 'the_content', 'spotify_embed_ids', 7 ); |
<?php | |
// This is the meat of the plugin and should go in mu-plugins/0-env-url-override.php | |
// Only load these filters if we're not in the production environment | |
if ( defined( 'ENV_NOT_PRODUCTION' ) && ENV_NOT_PRODUCTION ) { | |
// This always needs to be filtered | |
add_filter( 'site_url', 'env_filter_site_url', 0 ); | |
// We don't filter home_url in the admin so that we get production URLs for posts. | |
// This does break certain links like "Preview/View Post", however. |