Skip to content

Show unused "job specification items" #31

Answered by anantajitjg
AdamM-AU asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

Sorry for the delay in response.

By default, only specification options (terms) attached to jobs are only shown in the filters. So to also show these empty terms, you can use the awsm_filter_spec_terms_args filter hook to modify the default arguments.

function awsm_filter_spec_terms_custom_args( $terms_args ) {
	$terms_args['hide_empty'] = false;
	return $terms_args;
}
add_filter( 'awsm_filter_spec_terms_args', 'awsm_filter_spec_terms_custom_args' );

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anantajitjg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants