selective_refresh ) ? 'postMessage' : 'refresh';
$wp_customize->add_setting(
'aasta_footer_copright_text',
array(
'sanitize_callback' => 'agencywp_sanitize_text',
'default' => __('Copyright © 2023 | Powered by WordPress | AgencyWP theme by ThemeArile', 'agencywp'),
'transport' => $selective_refresh,
)
);
$wp_customize->add_control('aasta_footer_copright_text', array(
'label' => esc_html__('Footer Copyright','agencywp'),
'section' => 'aasta_footer_copyright',
'priority' => 10,
'type' => 'textarea'
));
}
add_action( 'customize_register', 'agencywp_customizer_theme_settings' );
function agencywp_sanitize_text( $input ) {
return wp_kses_post( force_balance_tags( $input ) );
}