Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created May 13, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/69c60a7665199a4152ead218beb8ad43 to your computer and use it in GitHub Desktop.
Save clifgriffin/69c60a7665199a4152ead218beb8ad43 to your computer and use it in GitHub Desktop.
<?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