has_cap( 'manage_options' ); } /** * Check if the current redirect is to the Bluehost plugin. * * @param string $redirect The current redirect URL. * * @return bool */ public static function is_bluehost_redirect( $redirect ) { return false !== strpos( $redirect, admin_url( 'admin.php?page=bluehost' ) ); } /** * Get the Bluehost dashboard URL. * * @return string */ public static function get_bluehost_dashboard_url() { return admin_url( 'admin.php?page=bluehost#/home' ); } } LoginRedirect::init();