Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function matador_default_required_fields( $fields ) {
return array(
'first_and_last_name',
'email',
'phone',
);
}
add_filter( 'matador_default_required_fields', 'matador_default_required_fields' );
// or
function matador_default_required_fields( $fields ) {
// add phone
$fields[] = 'phone';
// find the key and then unset it
if (($key = array_search('resume', $fields)) !== false) {
unset($fields[$key]);
}
return $fields;
}
add_filter( 'matador_default_required_fields', 'matador_default_required_fields' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.