I cant seem to get it to work. I tested the code online in several sources and receive an error "FATAL ERROR Call to undefined function add_filter() on line number 2"
Code: Select all
<?php
add_filter( 'submit_job_form_fields', 'frontend_add_salary_field' );
function frontend_add_salary_field( $fields ) {
$fields['job']['job_salary'] = array(
'label' => __( 'Salary ($)', 'job_manager' ),
'type' => 'text',
'd' => true,
'placeholder' => 'e.g. 20000',
'priority' => 7
);
return $fields;
}