Created
September 26, 2019 17:46
-
-
Save kjohnson/dc3cea3a4905b705dfc903c7c69be118 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 | |
add_filter( 'ninja_shop_possible_template_paths', function( $paths ) { | |
$paths[] = dirname( __FILE__ ) . '/templates/'; | |
return $paths; | |
} ); |
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 | |
/** | |
* This is the modified template for our checkout instance, | |
* which returns an empty div to omit the Edit Cart link | |
* from the workflow. | |
*/ | |
?> | |
<?php do_action( 'ninja_shop_content_checkout_before_cancel_element' ); ?> | |
<div class="ninja-shop-checkout_cancel hidden"> | |
</div> | |
<?php do_action( 'ninja_shop_content_checkout_after_cancel_element' ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ninja Shop templates can be customized by loading a different file, which will be given preference over the initial template file.
ninja_shop_possible_template_paths
and append a new template path.