Remove cap function isn’t working [closed]

I’m using the following function to remove multiple capabilities from Gravity Forms: function set_gf_capabilities() { // Get the role object. $editor = get_role( ‘editor’ ); // A list of capabilities to remove from editors. $caps = array( ‘gravityforms_edit_forms’, ‘gravityforms_delete_forms’, ‘gravityforms_create_form’, // ‘gravityforms_view_entries’, ‘gravityforms_edit_entries’, ‘gravityforms_delete_entries’, ‘gravityforms_view_settings’, ‘gravityforms_edit_settings’, ‘gravityforms_export_entries’, ‘gravityforms_uninstall’, // ‘gravityforms_view_entry_notes’, // ‘gravityforms_edit_entry_notes’, ‘gravityforms_view_updates’, ‘gravityforms_view_addons’, ‘gravityforms_preview_forms’,…

class-wp-hook.php on line 288

Can someone help me with this error my website is not working even wp-admin page I’m getting this error message I have tried to disable all plugins but still same error? Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_pre_kses_block_attributes’ not found or invalid function name in /home//public_html/wp-includes/class-wp-hook.php on line 288 Warning:…

Logout after clicking URL link results in “headers already sent” error

Warning: Cannot modify header information – headers already sent by (output started at D:\xampp\htdocs\wordpress\wp-includes\formatting.php:5688) in D:\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 961 I am using this function if(isset($_GET[‘logout’])) { //echo “test”; //die(); wp_logout(); wp_redirect(“http://localhost:2124/wordpress/game/”); exit; //wp_logout_url(“http://localhost:2124/wordpress/logout_custom”); //exit(); //die(); //wp_redirect(site_url().’/login’); //return “<script> location.replace(‘”.site_url().”/login’);</script>”; //exit(); //wp_redirect(site_url().”/login/”); }