• public function database_name_check($input){
        //debug
        add_settings_error('notice', 'lol', 'lol');
        if($this->wpdb->get_var($this->wpdb->prepare('SHOW DATABASES LIKE %s', $input)) == $input)
            return $input;
        else{
            add_settings_error('notice', 'lol', 'lol');
            return FALSE;
        }
    }

    I can not understand why the error does not exceed, any suggestions?

  • The topic ‘How to use add_settings_error in register_setting callback’ is closed to new replies.