Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created December 3, 2019 14:03
Show Gist options
  • Save danjjohnson/5ab128f246e7af26fba5b097717c7dab to your computer and use it in GitHub Desktop.
Save danjjohnson/5ab128f246e7af26fba5b097717c7dab to your computer and use it in GitHub Desktop.
WPJM: Show hidden WooCommerce products when selecting a job package
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