'.$html.''; $return = str_replace('frameborder="0" allowfullscreen', 'style="border:none"', $return); return $return; } add_filter( 'embed_oembed_html', 'dw_embed_oembed_html' ); function dw_embed_oembed_html( $html ) { return preg_replace( '@src="https?:@', 'src="', $html ); } add_action( 'admin_menu', 'daw_is_online_add_admin_menu' ); add_action( 'admin_init', 'daw_is_online_settings_init' ); function daw_is_online_add_admin_menu( ) { add_options_page( 'DW Status', 'DAW Online', 'manage_options', 'daw_is_online', 'daw_is_online_options_page' ); } function daw_is_online_settings_init( ) { register_setting( 'dwstatus', 'daw_is_online_settings' ); add_settings_section('daw_is_online_pluginPage_section', __( 'DAW Online', 'wordpress' ), 'daw_is_online_settings_section_callback', 'dwstatus'); add_settings_field( 'daw_is_online_select_field_0', __( 'Am I Online ?', 'wordpress' ), 'daw_is_online_select_field_0_render', 'dwstatus', 'daw_is_online_pluginPage_section' ); } function daw_is_online_select_field_0_render( ) { $options = get_option( 'daw_is_online_settings' ); ?>
" . "\r\n"; if ( wp_mail( $to, $subject, $message, $headers ) ) { echo 'Thank you. I will be in touch.
'; echo 'Error, please try again
'; echo '