Created
March 29, 2019 20:20
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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