Snippets

Pavel Kostyuchenko PYS Purchase event on any page

Created by Pavel Kostyuchenko last modified
add_filter( 'woocommerce_is_order_received_page', 'pys_is_thank_you_page' );
function pys_is_thank_you_page( $value ) {
    
    if ( /* add condition here */ ) {
        return true;
    } else {
        return $value;
    }
        
}

Comments (0)