• Resolved mikalao

    (@mikalao)


    Hello all.

    I’m looking for someone that could help me with how to remove the ‘company section’ from the job posting form. I would also ideally like to remove the ‘remote/on’site’ options and just have location.

    I’ve seen this code online, but not sure where to put it, and where I have put it it doesn’t seem to do anything:

    <em>`add_filter( ‘submit_job_form_fields’, ‘gma_custom_submit_job_form_fields’ );

    function gma_custom_submit_job_form_fields( $fields ) {

    unset($fields[‘company’][‘company_name’]);
    unset($fields[‘company’][‘company_website’]);
    unset($fields[‘company’][‘company_tagline’]);
    unset($fields[‘company’][‘company_video’]);
    unset($fields[‘company’][‘company_twitter’]);
    unset($fields[‘company’][‘company_logo’]);

    return $fields;
    }`

    • This topic was modified 2 years, 8 months ago by mikalao.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @mikalao

    There aren’t any filters that you may use for removing the company fields from the job posting form. But there is the job-submission.php template that you may replace via theme and remove company data fields from there.

    See this article for the information on how to replace templates:
    https://docs.jobboardwp.com/article/1570-templates-structure

    Also, you need to re-write the action listener on job posting action:
    remove_action( 'wp_loaded', array( JB()->frontend(), 'actions_listener' ), 10 );

    And add your own copy without validation for required company data that you plan to remove. You may add this copy to your functions.php file inside theme/child-theme.

    Let me know if you have other questions,
    Best Regards!

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @mikalao

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing job post form’ is closed to new replies.