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 | |
// Force deactivate all Jetpack modules, except for stats | |
function jeherve_force_deactivate_everything_but_stats() { | |
if ( class_exists( 'Jetpack_Options' ) ) | |
Jetpack_Options::update_option( 'active_modules', array_unique( array( 'stats' ) ) ); | |
} | |
add_action( 'init', 'jeherve_force_deactivate_everything_but_stats' ); |
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 | |
add_filter( 'jetpack_development_mode', '__return_true' ); |
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 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' ); |
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: Jetpack default image | |
* Plugin URI: http://wordpress.org/extend/plugins/ | |
* Description: Add a default fallback image if no image can be found in a post | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ |
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: 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 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 | |
// To disable the auto-activation of Jetpack's Widget Visibility module: | |
add_filter( 'jetpack_get_default_modules', 'disable_jetpack_widget_visibility_autoactivate' ); | |
function disable_jetpack_widget_visibility_autoactivate( $modules ) { | |
return array_diff( $modules, array( 'widget-visibility' ) ); | |
} | |
// Or, to disable the functionality in your own plugin if the user activates it in Jetpack: |
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: Mobile Theme Featured images on single views too | |
* Plugin URI: http://wordpress.org/extend/plugins/jetpack-mobile-theme-featured-images/ | |
* Description: Adds Featured Images before the content on the article pages, in Jetpack Mobile theme | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
* Text Domain: jetpack |
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 fb_home_image() { | |
$fb_home_img = 'YOUR_IMAGE_URL'; | |
$fb_home_img_output = sprintf( '<meta property="og:image" content="%s" />', esc_attr( $fb_home_img ) ); | |
if ( is_home() ) | |
echo $fb_home_img_output; | |
} | |
add_action( 'wp_head', 'fb_home_image' ); |
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
.jp-carousel-close-hint { right: 100px!important; } | |
body .jp-carousel-close-hint span { float: right; font-size: 60px!important; width: 60px; height: 60px; } |