also, it seems I have to edit the following files in order to add some customized fields to the database, front-end and admin page. how can I override all these files? I couldn’t find the override functions instructions for the following files on your documentations. Please advise.
includes\frontend\class-actions-listener.php
includes\admin\templates\job\data.php
includes\common\class-job.php
Hi @ashkaning
Sorry for the delay, you cannot edit admin templates via theme. There is an ability only for the frontend templates. There is the document about templates structure: https://docs.jobboardwp.com/article/1570-templates-structure
For adding the job custom fields to wp-admin job’s metabox you could use WP filter hook. See the example for text field with key = “jb-application-contact-test” below:
function my_custom_fields( $fields ) {
$fields[] = [
'id' => 'jb-application-contact-test',
'type' => 'text',
'label' => __( 'Application contact test', 'jobboardwp' ),
'description' => __( 'It\'s required email or URL for the "application" area.', 'jobboardwp' ),
'value' => $app_contact_test,
],
return $fields;
}
add_filter( 'jb_job-data', 'my_custom_fields', 10, 1 );
Please see the hooks in the code for getting customized job posts.
We will prepare all JobBoardWP hooks docs soon.
Let me know if you have other questions,
Best Regards!
Hi @ashkaning
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards