我正在尝试挂钩wp作业管理器提交表单字段。
公司标语挂钩不起作用。 这是我在functions.php中的代码
add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' );
function custom_submit_job_form_fields( $fields ) {
$fields['job']['job_tags']['required'] = true;
//$fields['job']['job_type']['default'] = 'CDD';
$fields['job']['job_type']['type'] = 'term-multiselect';
$fields['job']['job_type']['required'] = false;
$fields['company']['company_tagline']['maxlength'] = 200;
return $fields;
}