Adding the wp jobmanager default datepicker for a custom field
-
Hi
I am trying to add the ‘wp jobmanager default datepicker’ for a custom field on the job post form, can someone explain as how this is done.
This feature is available by default on the admin panel whilst editing a job listing.
// job start date add_filter( 'submit_job_form_fields', 'frontend_add_sdate_field' ); function frontend_add_sdate_field( $fields ) { $fields['job']['job_sdate'] = array( 'label' => __( 'Start Date <span class="wpjm_label_sm">(optional)</span>', 'job_manager' ), 'type' => 'text', 'style' => 'job-manager-datepicker', 'required' => true, 'placeholder' => 'Click the field to pick a date', 'priority' => 10 ); return $fields; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding the wp jobmanager default datepicker for a custom field’ is closed to new replies.