Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.

Home Page:https://wpjobmanager.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

turtlepod opened this issue · 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)