'vp_gs_op_editor_style') ); register_setting( 'vp_gs_section', 'vp_gs_op_editor_style', 'vp_gs_checkbox_validation' ); add_settings_field( "vp_al_op_video_url", __('Video URL', 'video-popup'), "vp_al_op_video_url_cb", "vp_al_options", "vp_al_section", array('label_for' => 'vp_al_op_video_url') ); register_setting( 'vp_al_section', 'vp_al_op_video_url', 'esc_url_raw' ); add_settings_field( "vp_al_op_autoplay", __('Autoplay', 'video-popup'), "vp_al_op_autoplay_cb", "vp_al_options", "vp_al_section", array('label_for' => 'vp_al_op_autoplay') ); register_setting( 'vp_al_section', 'vp_al_op_autoplay', 'vp_gs_checkbox_validation' ); add_settings_field( "vp_al_op_display", __('Display Options', 'video-popup'), "vp_al_op_display_cb", "vp_al_options", "vp_al_section" ); register_setting( 'vp_al_section', 'vp_al_op_display', 'vp_al_display_validation' ); register_setting( 'vp_al_section', 'vp_al_op_display_custom', 'vp_al_number_validation' ); if( get_option('vp_al_op_display') === false ){ update_option('vp_al_op_display', 'entire'); } add_settings_field( "vp_al_op_cookie", __('Display Time', 'video-popup'), "vp_al_op_cookie_cb", "vp_al_options", "vp_al_section", array('label_for' => 'vp_al_op_cookie') ); register_setting( 'vp_al_section', 'vp_al_op_cookie', 'vp_al_number_validation' ); if( get_option('vp_al_op_cookie') === false ){ update_option('vp_al_op_cookie', '1'); } add_settings_field( "vp_al_op_logged_in", __('Exclude Users', 'video-popup'), "vp_al_op_logged_in_cb", "vp_al_options", "vp_al_section", array('label_for' => 'vp_al_op_logged_in') ); register_setting( 'vp_al_section', 'vp_al_op_logged_in', 'vp_gs_checkbox_validation' ); register_setting( 'vp_al_section', 'vp_al_op_yt_mute', 'vp_gs_checkbox_validation' ); add_settings_field( "vp_gs_op_remove_boder", __('Remove Border', 'video-popup'), "vp_gs_op_remove_boder_callback", "vp_gs_options", "vp_gs_section", array('label_for' => 'vp_gs_op_remove_boder') ); register_setting( 'vp_gs_section', 'vp_gs_op_remove_boder', 'vp_gs_checkbox_validation' ); add_settings_field( "vp_gs_op_width_size", __('Width Size', 'video-popup'), "vp_gs_op_width_size_callback", "vp_gs_options", "vp_gs_section", array('label_for' => 'vp_gs_op_width_size') ); register_setting( 'vp_gs_section', 'vp_gs_op_width_size', 'vp_al_number_validation' ); add_settings_field( "vp_gs_op_height_size", __('Height Size', 'video-popup'), "vp_gs_op_height_size_callback", "vp_gs_options", "vp_gs_section", array('label_for' => 'vp_gs_op_height_size') ); register_setting( 'vp_gs_section', 'vp_gs_op_height_size', 'vp_al_number_validation' ); add_settings_field( "vp_gs_op_overlay_color", __('Color of Overlay', 'video-popup'), "vp_gs_op_overlay_color_callback", "vp_gs_options", "vp_gs_section", array('label_for' => 'vp_gs_op_overlay_color') ); register_setting( 'vp_gs_section', 'vp_gs_op_overlay_color', 'vp_gs_hex_code_validation' ); add_settings_field( "vp_al_op_align", __('Alignment Options', 'video-popup'), "vp_al_op_align_options_callback", "vp_al_options", "vp_al_section" ); add_settings_field( "vp_al_op_yt_dis_rel_videos", __('YouTube Options', 'video-popup'), "vp_al_op_youtube_options_callback", "vp_al_options", "vp_al_section" ); add_settings_field( "vp_al_op_design_w", __('Design Options', 'video-popup'), "vp_al_op_design_options_callback", "vp_al_options", "vp_al_section" ); register_setting( 'vp_al_section', 'vp_al_op_d_remove_border', 'vp_gs_checkbox_validation' ); } add_action('admin_init', 'video_popup_add_general_settings', 1); function video_popup_general_settings_callback(){ do_action('video_popup_gs_cb_action'); } function video_popup_general_settings_free(){ ?>

this note about the Autoplay for the "On Page Load" feature.', 'video-popup'), 'https://wp-plugins.in/37VT3Z0' ); $autoplay = get_option('vp_al_op_autoplay'); ?>






You can also use the YouTube Options with the alignment feature. All options on this page are compatible together.", 'video-popup'); ?>