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: Exclude the asmodeus category from Jetpack Subscriptions | |
* Plugin URI: http://wordpress.org/plugins/jetpack/ | |
* Description: Exclude the asmodeus category from Jetpack Subscriptions | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ |
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 | |
/** | |
* The theme appears to be using its own function, `themify_get_image()`, to build image URLs used to display images above posts. | |
* It can grab image details (like dimensions) from custom fields in each post, | |
* and then builds a custom HTML output based on parameters you can add to the function. | |
* | |
* Photon won't be able to support that, so they'll need to make these images don't get processed by Photon at all. | |
* | |
* Add the following to a functionality plugin to force Photon to ignore such images | |
*/ |
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
grep -o -r apply_filters * | wc -l |
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
.mobile-theme .hentry, | |
.mobile-theme .no-results { | |
clear: none; | |
} |
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 | |
// Create our custom Publicize message | |
function jeherve_cust_pub_message() { | |
$post = get_post(); | |
// Grab the first category of your post | |
if ( !empty( $post ) ) | |
$categories = get_the_category( $post->ID ); |
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: Moar snow! | |
Plugin URI: http://wordpress.org/plugins/jetpack/ | |
Description: Force the display of Jetpack's snow on your site, even outside of the holiday season | |
Author: Jeremy Herve | |
Author URI: http://jeremyherve.com | |
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 | |
// Get the number of subscribers on your site | |
function jeherve_sub_count() { | |
if ( class_exists( 'Jetpack_Subscriptions_Widget' ) ) { | |
$subcount = Jetpack_Subscriptions_Widget::fetch_subscriber_count(); | |
echo $subcount['value']; | |
} | |
} |
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 | |
add_filter( 'jetpack_development_mode', '__return_true' ); |
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 | |
function jeherve_remove_tw_tags() { | |
remove_filter( 'jetpack_open_graph_tags', 'wpcom_twitter_cards_tags' ); | |
remove_filter( 'jetpack_open_graph_tags', 'change_twitter_site_param' ); | |
} | |
add_action( 'template_redirect', 'jeherve_remove_tw_tags' ); |