Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created March 29, 2019 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/773c5137d5c7171b535babd8a27b9756 to your computer and use it in GitHub Desktop.
Save tripflex/773c5137d5c7171b535babd8a27b9756 to your computer and use it in GitHub Desktop.
Customize the GET param used for auto populate WP Job Manager Field Editor fields
<?php
add_filter( 'job_manager_field_editor_url_populate_from_key', 'smyles_auto_populate_from_get_custom', 10, 3 );
function smyles_auto_populate_from_get_custom( $meta_key, $args, $return_default ){
if( $meta_key === 'job_title' ){
return 'job_title_custom';
}
return $meta_key;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment