/** * Disable Jetpack features that are not compatible with AMP. * **/ function amp_jetpack_mods() { if (Jetpack::is_module_active('stats')) { add_action('amp_post_template_footer', 'jetpack_amp_add_stats_pixel'); } amp_jetpack_disable_sharing(); amp_jetpack_disable_related_posts(); }
/** * Disable Jetpack features that are not compatible with AMP. * **/ function amp_jetpack_mods() { amp_jetpack_disable_related_posts(); }