public function add_clear_performance_hints_menu_item( WP_Admin_Bar $wp_admin_bar ): void { $this->admin_bar->add_clear_performance_menu_item( $wp_admin_bar ); } /** * Add clear performance data hints for current url to WP Rocket admin bar menu * * @param WP_Admin_Bar $wp_admin_bar WP_Admin_Bar instance, passed by reference. * * @return void */ public function add_clear_url_performance_hints_menu_item( WP_Admin_Bar $wp_admin_bar ): void { $this->admin_bar->add_clear_url_performance_hints_menu_item( $wp_admin_bar ); } /** * Display the dashboard button to clear performance data hints features * * @return void */ public function display_dashboard_button() { $this->admin_bar->display_dashboard_button(); } /** * Truncate Performance Hints tables when clicking on the dashboard button/menu * * @return void */ public function clean_performance_hints(): void { $this->clean->clean_performance_hints(); } /** * Truncate performance hints the current URL. * * @return void */ public function clean_url_performance_hints(): void { $this->clean->clean_url_performance_hints(); } /** * Show admin notice after clearing Performance Hints tables. * * @return void */ public function clean_performance_hint_result(): void { $this->notices->clean_performance_hint_result(); } }
Fatal error: Uncaught TypeError: WP_Rocket\Event_Management\Event_Manager::add_subscriber(): Argument #1 ($subscriber) must be of type WP_Rocket\Event_Management\Subscriber_Interface, string given, called in /htdocs/wp-content/plugins/wp-rocket/inc/Plugin.php on line 166 and defined in /htdocs/wp-content/plugins/wp-rocket/inc/classes/event-management/class-event-manager.php:33 Stack trace: #0 /htdocs/wp-content/plugins/wp-rocket/inc/Plugin.php(166): WP_Rocket\Event_Management\Event_Manager->add_subscriber('WP_Rocket\\Engin...') #1 /htdocs/wp-content/plugins/wp-rocket/inc/main.php(49): WP_Rocket\Plugin->load() #2 /htdocs/wp-includes/class-wp-hook.php(341): rocket_init('') #3 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #4 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #5 /htdocs/wp-settings.php(593): do_action('plugins_loaded') #6 /htdocs/wp-config.php(101): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/wp-rocket/inc/classes/event-management/class-event-manager.php on line 33