Last active
April 6, 2018 02:08
-
-
Save albionselimaj/7b5918eb63a75cc90bb0d26b95525f85 to your computer and use it in GitHub Desktop.
Skip checkout for free items
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 | |
// Skip checkout for $0 listing packages | |
add_filter( 'mylisting\packages\free\skip-checkout', '__return_true' ); | |
// Don't skip checkout for any listing package | |
add_filter( 'mylisting\packages\free\skip-checkout', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment