Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

11 lines
256 B
PHP

<?php
/**
* Check to see if a value is required
* Test $input[$k['id']]
* Set $k['error_msg'] and $is_valid
*/
if ( empty( $input[ $k[ 'id' ] ] ) ) {
$is_valid = false;
$error_msg = $k[ 'label' ] . ' ' . __( 'is required.', 'coming-soon' );
}