Autopopulate user’s listing field with url
-
Hi,
I’m using the job manager plugin with contact form 7.
I want that when a person wants to apply for the position, they can only select an option from a dropdown menu and submit.
The options in the dropdown menu have to be the URL’s to the listings the person created because when it will be submitted, the employer will receive the link to click.Ex. If a person created 1 listing, the url of that listing will show as an option to select from the dropdown and to submit.
add_filter( 'job_application_form_fields', function( $fields ) { if ( ! is_user_logged_in() ) { return $fields; } $user_listing_url = get_current_user_listing_url(); $fields['message']['value'] = get_user_meta( $user_listing_url, 'shared-application-message', true ); return $fields; } );
I have this code but it doesn’t work. Can someone please help me solve this. Thanks
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Autopopulate user’s listing field with url’ is closed to new replies.