I am working with customize register on sage wordpress
//adding setting for copyright text
add_action('customize_register', 'theme_copyright_customizer');
function theme_copyright_customizer($wp_customize) {
//adding section in wordpress customizer
$wp_customize->add_section('copyright_extras_section', array(
'title' => 'Copyright Text Section'
));
//adding setting for copyright text
$wp_customize->add_setting('text_setting', array(
'default' => 'Default Text For copyright Section',
));
$wp_customize->add_control('text_setting', array(
'label' => 'Copyright text',
'section' => 'copyright_extras_section',
'type' => 'text',
));
}
This shows me
call_user_func_array() expects parameter 1 to be a valid callback, class xxx not found
Do anyone has an idea?
class xxx
? I see you removed it to hide the value, but the value is important and critical to answering the question