Add to Cart Button Custom Text

Allows to customize the Add to cart button text in WooCommerce by product type in both archive and single product pages.

v4.1.0Enrique J. RosUpdated 2025-11-08Added Jan 29, 201610k+ installs92% rating
42
Score
98
Errors
4
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability91

Top Issues by Category

Issues Details

102 issues found in latest scan

ERROR36
WordPress.WP.I18n.TextDomainMismatch

Mismatched text domain. Expected 'add-to-cart-button-custom-text' but got 'add-to-cart-custom-text'.

ERROR23
WordPress.Security.EscapeOutput.UnsafePrintingFunction

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

ERROR12
WordPress.WP.I18n.MissingArgDomain

Missing $domain parameter in function call to __().

ERROR11
WordPress.Security.EscapeOutput.OutputNotEscaped

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'.

ERROR10
WordPress.WP.I18n.NonSingularStringLiteralText

The $text parameter must be a single text string literal. Found: esc_attr ($this->add_to_cart_bookable)

ERROR4
WordPress.WP.I18n.MissingTranslatorsComment

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

WARNING3
WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "EJR_Add_To_Cart".

ERROR1
PluginCheck.CodeAnalysis.SettingSanitization.register_settingMissing

Sanitization missing for register_setting().

ERROR1
outdated_tested_upto_header

Tested up to: 6.9 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

WARNING1
textdomain_mismatch

The "Text Domain" header in the plugin file does not match the slug. Found "add-to-cart-custom-text", expected "add-to-cart-button-custom-text".

Latest Snapshot

Findings

102

Errors

98

Warnings

4

Score History

First score snapshot

First scan completed Jun 20, 2026

v4.1.0 · Plugin Check 2.0.0 · Model 2026.06-mvp-static-v2

Jun 20, 2026

v4.1.0

42

Latest

Findings
102
Errors
98
Warnings
4
Plugin Check
2.0.0
Model
2026.06-mvp-static-v2

Related Plugins