Skip to content

Instantly share code, notes, and snippets.

@adamlaki
Created December 8, 2018 07:22
Show Gist options
  • Save adamlaki/45e85491a0e047831b58d54cf97ef5b2 to your computer and use it in GitHub Desktop.
Save adamlaki/45e85491a0e047831b58d54cf97ef5b2 to your computer and use it in GitHub Desktop.
Check If a Jetpack Module is Active
<?php
if ( class_exists( 'Jetpack' ) && !Jetpack::is_module_active( 'infinite-scroll' ) ) {
the_posts_pagination();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment