functions.php
add_filter( ‘submit_job_form_fields’, ‘heynwa_custom_job_fields’, 999999999999 );
function heynwa_custom_job_fields( $fields ) {
if ( isset( $fields[ ‘company’ ][ ‘products’ ] ) ){
if( isset( $fields[‘company’][‘products’][‘options’] ) && ! empty( $fields[‘company’][‘products’][‘options’] ) ){
$options = $fields[‘company’][‘products’][‘options’];
// To find out the specific ID of the “products” you can either add &debug to the end of the URL when viewing the company fields
// in admin area (then scroll down until you find them), or go to the products page and get the actual ID
if( isset( $options[894] ) ) unset( $fields[‘company’][‘products’][‘options’][894] );
if( isset( $options[892] ) ) unset( $fields[‘company’][‘products’][‘options’][892] );
if( isset( $options[896] ) ) unset( $fields[‘company’][‘products’][‘options’][896] );
if( isset( $options[895] ) ) unset( $fields[‘company’][‘products’][‘options’][895] );
}
}
return $fields;
}
functions.php
add_filter( 'submit_job_form_fields', 'heynwa_custom_job_fields', 999999999999 );
function heynwa_custom_job_fields( $fields ) {
if ( isset( $fields[ 'company' ][ 'products' ] ) ){
if( isset( $fields['company']['products']['options'] ) && ! empty( $fields['company']['products']['options'] ) ){
$options = $fields['company']['products']['options'];
// To find out the specific ID of the "products" you can either add &debug to the end of the URL when viewing the company fields
// in admin area (then scroll down until you find them), or go to the products page and get the actual ID
if( isset( $options[894] ) ) unset( $fields['company']['products']['options'][894] );
if( isset( $options[892] ) ) unset( $fields['company']['products']['options'][892] );
if( isset( $options[896] ) ) unset( $fields['company']['products']['options'][896] );
if( isset( $options[895] ) ) unset( $fields['company']['products']['options'][895] );
}
}
return $fields;
}
No comments yet.