selective_refresh ) ? 'postMessage' : 'refresh'; // Footer Panel // $wp_customize->add_panel( 'footer_section', array( 'priority' => 160, 'capability' => 'edit_theme_options', 'title' => __('Footer', 'aqwa'), ) ); // Footer Bottom // $wp_customize->add_section( 'footer_bottom', array( 'title' => __('Footer Bar','aqwa'), 'panel' => 'footer_section', 'priority' => 3, ) ); // Footer Copyright $copy_text = esc_html__('Copyright © [year] | By [author]', 'aqwa' ); $wp_customize->add_setting( 'footer_copyright', array( 'default' => $copy_text, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_kses_post', 'priority' => 4, ) ); $wp_customize->add_control( 'footer_copyright', array( 'label' => __('Copyright','aqwa'), 'description' => __('[year] => Current year
[author] => Theme author','aqwa'), 'section' => 'footer_bottom', 'type' => 'textarea', 'transport' => $selective_refresh, ) ); } public function add_partials( $wp_customize ){ $wp_customize->selective_refresh->add_partial( 'footer_copyright', array( 'selector' => '.footer-coppy-right p', 'render_callback' => function() { return get_theme_mod( 'footer_copyright' ); }, ) ); } } new Aqwa_Footer_Customize(); } ?>