| @@ -1,0 +1,15 @@ | ||
| 1 | +<?php | |
| 2 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | + exit; // Exit if accessed directly | |
| 4 | +} | |
| 5 | + | |
| 6 | +// esc_html_e( 'New Contact Form Submission', 'ablocks' ) . "\n"; | |
| 7 | +// esc_html_e( 'You have a new contact form submission!', 'ablocks' ) . "\n"; | |
| 8 | +// esc_html_e( 'Email:', 'ablocks' ) . esc_html( $email ) . "\n"; | |
| 9 | +// esc_html_e( 'Message:', 'ablocks' ) . "\n"; | |
| 10 | +echo wp_kses_post( $message ) . "\n"; | |
| 11 | + | |
| 12 | +$url = wp_parse_url( get_bloginfo( 'url' ) ); | |
| 13 | +$host = isset( $url['host'] ) ? sanitize_text_field( $url['host'] ) : ''; | |
| 14 | +$port = isset( $url['port'] ) ? sanitize_text_field( (string) $url['port'] ) : '80'; | |
| 15 | +echo esc_html( $host . ':' . $port ); | |