plan->name; if ( $plan === 'Free' ) { return sprintf( '
%s
', __( 'You’ve reached your free plan limit', 'pojo-accessibility' ), __( 'Upgrade to scan more pages, unlock AI fixes, and access all accessibility features.', 'pojo-accessibility' ), SettingsModule::get_upgrade_link( 'acc-100-quota' ), __( 'Upgrade Now', 'pojo-accessibility' ), ); } return sprintf( '%s
', __( 'You’ve reached your monthly plan usage', 'pojo-accessibility' ), __( 'Upgrade now to raise your limit and maintain complete access to all accessibility features.', 'pojo-accessibility' ), SettingsModule::get_upgrade_link( 'acc-100-quota' ), __( 'Upgrade Now', 'pojo-accessibility' ), ); } public function maybe_add_quota_100_notice() : void { $plan_data = Settings::get( Settings::PLAN_DATA ); if ( ! $plan_data ) { $this->conditions = false; } $plan_usage = (int) SettingsModule::get_plan_usage(); if ( 100 === $plan_usage ) { $this->conditions = true; } elseif ( $plan_usage < 100 ) { $this->undismiss(); $this->conditions = false; } else { $this->conditions = false; } } public function print_js() { // used to make sure we only print this js once per page $action = 'admin_notices_print_js'; if ( did_action( $action ) ) { return; } do_action( $action ); ?>