page = $page; } /** * Return an array of events that this subscriber wants to listen to. * * @since 3.3 * * @return array */ public static function get_subscribed_events() { return [ 'admin_menu' => 'add_admin_page', 'admin_init' => 'configure', 'wp_ajax_rocket_refresh_customer_data' => 'refresh_customer_data', 'wp_ajax_rocket_toggle_option' => 'toggle_option', 'rocket_settings_menu_navigation' => [ [ 'add_menu_tools_page' ], [ 'add_imagify_page', 9 ], [ 'add_tutorials_page', 11 ], ], 'admin_enqueue_scripts' => 'enqueue_rocket_scripts', 'script_loader_tag' => [ 'async_wistia_script', 10, 2 ], ]; } /** * Enqueues WP Rocket scripts on the settings page * * @since 3.6 * * @param string $hook The current admin page. * * @return void */ public function enqueue_rocket_scripts( $hook ) { $this->page->enqueue_rocket_scripts( $hook ); } /** * Adds the async attribute to the Wistia script * * @param string $tag The