Created
April 23, 2023 22:11
-
-
Save nikitasinelnikov/4e71347bde57a1bdb19afccd9064d531 to your computer and use it in GitHub Desktop.
JobBoardWP: Change wp_editor description to the clear textarea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jb_job_submission_form_args_custom( $args ) { | |
foreach ( $args['sections']['job-details']['fields'] as &$field ) { | |
if ( 'job_description' === $field['id'] ) { | |
$field['type'] = 'textarea'; | |
} | |
} | |
return $args; | |
} | |
add_filter( 'jb_job_submission_form_args', 'jb_job_submission_form_args_custom', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment