'the_job_application_method' Filters need to be applied even when no application.
turtlepod opened this issue · comments
David Chandra Purnama commented
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)