WordPress.org

Making WordPress.org

Changeset 5323


Ignore:
Timestamp:
04/12/17 17:31:50 (8 months ago)
Author:
iandunn
Message:

Jetpack Tweaks: Disable irrelevant and intrusive just-in-time messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/miscellaneous.php

    r2958 r5323  
    44defined( 'WPINC' ) or die(); 
    55 
     6add_action( 'plugins_loaded', __NAMESPACE__ . '\modify_hooks_after_jetpack_init' ); 
     7 
     8// Allow Photon to fetch images that are served via HTTPS 
    69add_filter( 'jetpack_photon_reject_https',    '__return_false' ); 
     10 
     11// Disable Snow to avoid performance and accessibility problems 
    712add_filter( 'jetpack_is_holiday_snow_season', '__return_false' ); 
     13 
     14/** 
     15 * Modify hooks after Jetpack::init() 
     16 */ 
     17function modify_hooks_after_jetpack_init() { 
     18    /* 
     19     * Many of these messages are just marketing upsells for services we don't need, don't want, or have 
     20     * alternatives for already. Those messages aren't relevant to organizers, so they just intrude on their work 
     21     * unnecessarily. 
     22     */ 
     23    add_filter( 'jetpack_just_in_time_msgs', '__return_false' ); 
     24} 
Note: See TracChangeset for help on using the changeset viewer.