We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c7d4e commit 500ecf7Copy full SHA for 500ecf7
1 file changed
themes/osi/functions.php
@@ -621,7 +621,7 @@ function osi_ssp_register_post_type_args( array $args ): array {
621
*
622
* @return boolean The result.
623
*/
624
-function osi_block_booking_if_phone_filled( $result, $em_booking ) {
+function osi_block_booking_if_phone_filled( bool $result, EM_Booking $em_booking ) {
625
if ( ! empty( $em_booking->event ) ) {
626
if ( isset( $_POST['phone_hp'] ) && trim( $_POST['phone_hp'] ) !== '' ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
627
$em_booking->add_error( 'There was a problem with your booking. Please do not include a phone number.' );
0 commit comments