Astra_Builder_Customizer::update_default_wp_configs( object $wp_customize )
Update default WP configs.
Description
Parameters
- $wp_customize
-
(object) (Required) customizer object.
Source
File: inc/customizer/class-astra-builder-customizer.php
public function update_default_wp_configs( $wp_customize ) {
$wp_customize->get_control( 'custom_logo' )->priority = 2;
$wp_customize->get_control( 'blogname' )->priority = 8;
$wp_customize->get_control( 'blogdescription' )->priority = 12;
$wp_customize->get_setting( 'custom_logo' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_section( 'title_tagline' )->panel = 'panel-header-builder-group';
$wp_customize->selective_refresh->add_partial(
'custom_logo',
array(
'selector' => '.site-branding',
'container_inclusive' => true,
'render_callback' => 'Astra_Builder_Header::site_identity',
)
);
// @codingStandardsIgnoreStart PHPCompatibility.FunctionDeclarations.NewClosure.Found
$wp_customize->selective_refresh->add_partial(
'blogdescription',
array(
'selector' => '.site-description',
'render_callback' => function() {
bloginfo( 'description' );
},
)
);
$wp_customize->selective_refresh->add_partial(
'blogname',
array(
'selector' => '.site-title',
'render_callback' => function() {
bloginfo( 'name' );
},
)
);
// @codingStandardsIgnoreStart PHPCompatibility.FunctionDeclarations.NewClosure.Found
}
Expand full source code Collapse full source code View on Trac