Upload this file to your /wp-content/mu-plugins/ folder, as comicpress-photon.php
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_action( 'init', 'comicpress_photon_filters' ); | |
function comicpress_photon_filters() { | |
if ( class_exists( 'Jetpack' ) && Jetpack::init()->is_module_active( 'photon' ) ) { | |
add_filter( 'comicpress_display_comic_image', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note, you add this to the functions.php file of your comicpress CHILD THEME. or child-functions.php whichever you are using. If you don't know or have a /wp-content/mu-plugins/ folder