Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| <?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. |
| <?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 ); |
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
####lsauer.com
###Overview of all chrome:// pages.
chrome://about/###List of Pages as per v20.xxx
| <?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' ); |
| <?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 | |
| // TODO: don't run if Jetpack is active | |
| add_action( 'plugins_loaded', function() { | |
| if ( ! file_exists( WP_PLUGIN_DIR . '/jetpack/' ) ) | |
| return; | |
| $modules = array( | |
| 'modules/contact-form.php', | |
| 'modules/shortcodes.php', |
| // Listen for orientation changes | |
| window.addEventListener("orientationchange", function() { | |
| // Announce the new orientation number | |
| alert(window.orientation); | |
| }, false); | |
| // Listen for resize changes | |
| window.addEventListener("resize", function() { | |
| // Get screen size (inner/outerWidth, inner/outerHeight) | |