Files
Testing/tbb/wp-content/plugins/coming-soon/framework/validations/required.php

11 lines
256 B
PHP
Raw Normal View History

2026-11-17 16:15:01 -05:00
<?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' );
}