Created
May 13, 2019 19:50
-
-
Save clifgriffin/69c60a7665199a4152ead218beb8ad43 to your computer and use it in GitHub Desktop.
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 | |
// Do NOT include the opening php tag. | |
// Place in your theme's functions.php file | |
add_action( 'wp', 'block_astra_single_autopost_infinite_on_checkout' ); | |
function block_astra_single_autopost_infinite_on_checkout() { | |
if ( function_exists( 'is_checkout' ) && is_checkout() ) { | |
apply_filters( 'astra_get_option_ast-auto-prev-post', '__return_false' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment