var emptySearch = ' '; /[^\s]/.test(emptySearch) == ''
true
var emptySearch = ''; /[^\s]/.test(emptySearch) == ''
true
var emptySearch = '123'; /[^\s]/.test(emptySearch) == ''
false
$acf_keys = [
'location',
'job_intro',
'job_offer'
];
if(is_array($acf_keys)) {
foreach ($acf_keys as $value) {
switch ($value) {
case 'location':
update_field( $value, $job->Region, $postID );
break;
case 'job_intro':
update_field( $value, $job->JobTitle, $postID );
break;
case 'job_offer':
update_field( $value, $job->Description, $postID );
break;
default:
break;
}
}
}
update_field('location', $job->Region, $postID );
update_field('job_intro', $job->JobTitle, $postID );
update_field('job_offer', $job->Description, $postID );
gulp.watch("public/*.html")