Function to test “Valid Form Number”?
-
Does anyone know of a function I can use to test for a valid, published, and “countdown timer” hasnt been reached function? Basically, I want to have input of form_id and a boolean to tell me if it is valid, published and still before the countdown timer date/time. I could use the following, but it seems a bit heavy:
$form = new Give_Donate_Form( $args[$key] ); //bail if no form ID. if ( empty( $form->ID ) ) { //Do something in error }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Function to test “Valid Form Number”?’ is closed to new replies.