How can we add wp-editor in textarea in admin dashboard in wp job manager plugin?
Below code working in front end but in back end it is not working
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' => 'wp-editor',
'required' => true,
'placeholder' => 'e.g. 20000',
'priority' => 7
);
return $fields;
}
For back end i used
add_filter(job_manager_job_listing_data_fields','admin_add_salary_field' );
function admin_add_salary_field( $fields ) {
$fields['_job_salary'] = array(
'label' => __( 'Salary ($)', 'job_manager' ),
'type' => 'wp-editor',
'placeholder' => 'e.g. 20000',
'description' => ''
);
return $fields;
}
This is not working.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire