• Resolved ashkaning

    (@ashkaning)


    Hello,
    I’m trying to customize the includes\admin\templates\job\data.php on my child theme but it doesn’t seem to be working.
    Also, if I rename/add a field, which files I need to edit in order to save in the database and show in the backend and frontend properly?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ashkaning

    (@ashkaning)

    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

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    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!

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customizing admin file and template files’ is closed to new replies.