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
/** | |
* Plugin Name: Web Stories Additional GA Tracking | |
* Description: Mini-plugin to add an additional Google Analytics tracking code to web stories | |
* Plugin URI: https://wp.stories.google/ | |
* Author: Pascal Birchler, Google | |
* Author URI: https://opensource.google.com/ | |
* Version: 0.0.1 | |
* License: Apache License 2.0 | |
* License URI: https://www.apache.org/licenses/LICENSE-2.0 |
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
//0.gravatar.com | |
//1.gravatar.com | |
//2.gravatar.com | |
//a.optmnstr.com | |
//ajax.googleapis.com | |
//ajax.microsoft.com | |
//api.pinterest.com | |
//apis.google.com | |
//cdnjs.cloudflare.com | |
//code.jquery.com |
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
//0.gravatar.com | |
//1.bp.blogspot.com | |
//1.gravatar.com | |
//2.bp.blogspot.com | |
//2.gravatar.com | |
//3.bp.blogspot.com | |
//4.bp.blogspot.com | |
//a.optmnstr.com | |
//ad.doubleclick.net | |
//adservice.google.com |
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
<?php | |
/* | |
Plugin Name: Filter Images Out of RSS Feeds | |
Description: Filters images out of the content in rss feeds. | |
Version: 0.1-alpha | |
Author: Tuna Traffic | |
Author URI: http://tunatraffic.com | |
*/ | |
add_filter( 'the_content', 'rss_filter_img' ); |
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
/** | |
* WooCommerce Layout | |
*/ | |
//check if woo is active | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
function site_woo_layout() { | |
//apply full width to all woo pages | |
if( is_woocommerce() ) { | |
return 'full-width-content'; | |
} |
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
<?php | |
function remove_post_thumbnail($metadata, $object_id, $meta_key, $single){ | |
if( isset($meta_key) && '_thumbnail_id' === $meta_key && is_single() ) | |
return false; | |
else | |
return $metadata; | |
} | |
add_filter('get_post_metadata', 'remove_post_thumbnail', true, 4); |
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
/*Get WordPress To Play Nice When Your Entire WP-Content Directory is a SymLink aka Symbolic Link*/ | |
define('WP_CONTENT_DIR', realpath($_SERVER['DOCUMENT_ROOT'] . '/wp-content')); |
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
/*Get WordPress To Play Nice When Your Entire Plugin Directory is a SymLink aka Symbolic Link*/ | |
define('WP_PLUGIN_DIR', realpath($_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins')); |