function ‘theme_settings_page’ not found

call_user_func_arry is a PHP function call back with array of parameters. Nothing mush to do with that. Your function theme_settings_page is not defined. So please define that function and you will get rid of the error. Illustrated below… //admin pannel function theme_settings_init(){ register_setting( ‘theme_settings’, ‘theme_settings’ ); } //افزودن تنظیمات به منوی پیشخوان function add_settings_page() { … Read more

WordPress theme settings not saving

$options = get_option( ‘textdomain_settings’ ); ?> <input type=”checkbox” name=”textdomain_settings[textdomain_checkbox_field_0]” <?php checked( $options[‘textdomain_checkbox_field_0’], 1 ); ?> value=”1″> <?php Use this settings under Callback Field Function or you can generate code form here for settings api directly.