helper = new Helper(); $this->utils = $utils ?? new Utils(); add_action( 'admin_footer', array( $this, 'rate_plugin' ) ); add_action( 'admin_init', array( $this, 'message_about_plugin_split' ) ); add_filter( 'wp_kses_allowed_html', array( $this, 'custom_kses_allowed_html' ), 10, 1 ); } /** * @return void */ public function rate_plugin(): void { if ( ! $this->utils->isThisPage( 'wp-admin/admin.php?page=' . Menu::MENU_SLUG ) ) { return; } require_once HOSTINGER_ABSPATH . 'includes/Admin/Views/Partials/RateUs.php'; } public function message_about_plugin_split(): void { if ( $this->helper->should_plugin_split_notice_shown() ) { add_action( 'admin_notices', array( $this, 'custom_admin_notice' ) ); } } public function custom_admin_notice() { ?>