Automattic/WP-Job-Manager

'the_job_application_method' Filters need to be applied even when no application.

Closed this issue · 0 comments

Need to properly filter the final result of get_the_job_application_method() function.

Currently it will reply false if no application method found.

	$method = new stdClass();
	$apply  = $post->_application;

	if ( empty( $apply ) )
		return false;

Should be:

	if ( empty( $apply ) )
		return apply_filters( 'the_job_application_method', $method, $post );

This will enable devs to filter and create custom appication method using custom data (not using _application meta key)