Make priority filterable

This commit is contained in:
IanDelMar 2019-11-07 22:11:14 +01:00 committed by GitHub
parent 95415cd098
commit 10c2597b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
'title' => __( 'Theme Layout Settings', 'understrap' ), 'title' => __( 'Theme Layout Settings', 'understrap' ),
'capability' => 'edit_theme_options', 'capability' => 'edit_theme_options',
'description' => __( 'Container width and sidebar defaults', 'understrap' ), 'description' => __( 'Container width and sidebar defaults', 'understrap' ),
'priority' => 160, 'priority' => apply_filters( 'understrap_theme_layout_options_priority', 160 ),
) )
); );
@ -90,7 +90,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
'container' => __( 'Fixed width container', 'understrap' ), 'container' => __( 'Fixed width container', 'understrap' ),
'container-fluid' => __( 'Full width container', 'understrap' ), 'container-fluid' => __( 'Full width container', 'understrap' ),
), ),
'priority' => '10', 'priority' => apply_filters( 'understrap_container_type_priority', 10 ),
) )
) )
); );
@ -125,7 +125,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
'both' => __( 'Left & Right sidebars', 'understrap' ), 'both' => __( 'Left & Right sidebars', 'understrap' ),
'none' => __( 'No sidebar', 'understrap' ), 'none' => __( 'No sidebar', 'understrap' ),
), ),
'priority' => '20', 'priority' => apply_filters( 'understrap_sidebar_position_priority', 20 ),
) )
) )
); );