: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'<strong>' . esc_html__( 'All Addons Included', 'wpforms-lite' ) . '</strong>',
esc_html__( 'Calculations, Form Abandonment, Conversational Forms, Lead Forms, Frontend Post Submission, User Registration, Geolocation, Webhooks, Google Sheets, Coupons, and more (30+ total)', 'wpforms-lite' ),
'<strong>' . esc_html__( 'Limited Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Standard Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Standard Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Priority Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Premium Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Premium Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Premium Support', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( '1 Site', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( '3 Sites', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( '5 Sites', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Unlimited Sites', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Unlimited Sites', 'wpforms-lite' ) . '</strong>',
'<strong>' . esc_html__( 'Unlimited Sites', 'wpforms-lite' ) . '</strong>',
if ( ! isset( $data[ $feature ] ) ) {
// Is a top level license?
$is_licenses_top = in_array( $license, self::$licenses_top, true );
if ( ! isset( $data[ $feature ][ $license ] ) && ! $is_licenses_top ) {
// Some licenses have partial data.
if ( isset( $data[ $feature ][ $license ] ) ) {
return $data[ $feature ][ $license ];
// Top level plans has no feature difference with `pro` plan in most cases.
return $is_licenses_top ? $data[ $feature ]['pro'] : $data[ $feature ][ $license ];
* Get the current installation license type (always lowercase).
protected function get_license_type() {
$type = wpforms_get_license_type();
* Get the list of features for the licenses.
private function get_licenses_features_list() {
self::$licenses_features = [
'entries' => esc_html__( 'Form Entries', 'wpforms-lite' ),
'fields' => esc_html__( 'Form Fields', 'wpforms-lite' ),
'templates' => esc_html__( 'Form Templates', 'wpforms-lite' ),
'antispam' => esc_html__( 'Spam Protection and Security', 'wpforms-lite' ),
'conditionals' => esc_html__( 'Smart Conditional Logic', 'wpforms-lite' ),
'marketing' => esc_html__( 'Marketing Integrations', 'wpforms-lite' ),
'payments' => esc_html__( 'Payment Forms', 'wpforms-lite' ),
'surveys' => esc_html__( 'Surveys & Polls', 'wpforms-lite' ),
'advanced' => esc_html__( 'Advanced Form Features', 'wpforms-lite' ),
'addons' => esc_html__( 'WPForms Addons', 'wpforms-lite' ),
'support' => esc_html__( 'Customer Support', 'wpforms-lite' ),
'sites' => esc_html__( 'Number of Sites', 'wpforms-lite' ),
return self::$licenses_features;