Created
December 3, 2019 14:03
-
-
Save danjjohnson/5ab128f246e7af26fba5b097717c7dab to your computer and use it in GitHub Desktop.
WPJM: Show hidden WooCommerce products when selecting a job package
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
add_filter( 'wcpl_get_job_packages_args', 'bk_show_hidden_job_packages'); | |
function bk_show_hidden_job_packages( $args ) { | |
unset( $args['tax_query'][1] ); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment