Add pluggable function wrappers to inc/custom-header.php

This commit is contained in:
Alex Wright 2018-03-30 10:58:32 -05:00
parent 3083096ef7
commit acd630fcfa
1 changed files with 37 additions and 34 deletions

View File

@ -5,7 +5,10 @@
* @package understrap * @package understrap
*/ */
function understrap_custom_header_setup() { add_action( 'after_setup_theme', 'understrap_custom_header_setup' );
if ( ! function_exists ( 'understrap_custom_header_setup' ) ) {
function understrap_custom_header_setup() {
/** /**
* Filter UnderStrap custom-header support arguments. * Filter UnderStrap custom-header support arguments.
@ -38,5 +41,5 @@ function understrap_custom_header_setup() {
'description' => __( 'Default Header Image', 'understrap' ), 'description' => __( 'Default Header Image', 'understrap' ),
), ),
) ); ) );
}
} }
add_action( 'after_setup_theme', 'understrap_custom_header_setup' );