Post How to edit submission fields in Listify WordPress theme je prvi puta viđen na bbird.me.
]]>For example, let’s change the “Title” to “Company Name”, and for another example, make Location required:
add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' ); function custom_submit_job_form_fields( $fields ) { $fields['job']['job_title']['label'] = "Company Name"; $fields['job']['job_location']['required'] = true; return $fields; }
You might ask now – where do I get the filter names? Since the theme is using WP Job Manager plugin, you can get filter names on the plugins’ GitHub page. In our example, we modified the following:
'job_title' => array( 'label' => __( 'Title', 'wp-job-manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 1 ), 'job_location' => array( 'label' => __( 'Location', 'wp-job-manager' ), 'description' => __( 'Leave this blank if the location is not important', 'wp-job-manager' ), 'type' => 'text', 'required' => false, 'placeholder' => __( 'e.g. "London"', 'wp-job-manager' ), 'priority' => 2 ),
So all you have to do is to choose the array and modify any of its arguments.
Resources:
Post How to edit submission fields in Listify WordPress theme je prvi puta viđen na bbird.me.
]]>