'', 'header_text' => true, 'width' => 1920, 'height' => 400, 'flex-height' => true, 'video' => true, 'wp-head-callback' => 'beautify_header_style', 'admin-head-callback' => 'beautify_admin_header_style', 'admin-preview-callback' => 'beautify_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'beautify_custom_header_setup' ); if ( ! function_exists( 'beautify_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see beautify_custom_header_setup(). */ function beautify_header_style() { if ( get_header_image() ) { ?> ' . __( 'Play background video', 'beautify' ) . ''; $settings['l10n']['pause'] = '' . __( 'Pause background video', 'beautify' ) . ''; return $settings; } } add_filter( 'header_video_settings', 'beautify_video_controls' );