WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
Non-prefixed hook name
The plugin defines a hook name without a plugin-specific prefix.
Why It Shows Up
WordPress loads many plugins in the same PHP runtime. Plugin Check found a global symbol or hook name that is not clearly namespaced to this plugin.
Why It Matters
Unprefixed globals can collide with WordPress core, themes, or other plugins, causing fatal errors, overwritten values, or handlers running in the wrong context.
How to Fix
- Choose a short, unique prefix or namespace based on the plugin slug or vendor name.
- Rename the hook name so it cannot collide with code from another plugin.
- For public hooks, document the final hook name and keep it stable after release.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #4151 | Instant Back/Forward | 98 | 1 | 5 | 10k+ | Non-prefixed hook name | ||
| #4152 | Order List Table Elementor Widget for Woocommerce | 98 | 6 | 3 | 500 | Missing Translators Comment | ||
| #4153 | Plus WebP or AVIF | 98 | 24 | 5k+ | Non-prefixed global variable | |||
| #4154 | ACF Post-2-Post | 98 | 1 | 7 | 3k+ | Non-prefixed hook name | ||
| #4155 | Custom Query Blocks | 98 | 6 | 13 | 700 | Non-prefixed hook name | ||
| #4156 | Product Badges For WooCommerce | 98 | 16 | 600 | Non-prefixed global variable | |||
| #4157 | WebSub (FKA. PubSubHubbub) | 98 | 5 | 4 | 100k+ | Non-prefixed hook name | ||
| #4158 | Safe SVG | 98 | 7 | 4 | 1m+ | Missing Arg Domain | ||
| #4159 | Send Images to RSS | 98 | 3 | 4 | 3k+ | Non-prefixed hook name | ||
| #4160 | Sharing Image | 98 | 4 | 2 | 600 | Missing Arg Domain | ||
| #4161 | Shop as Client for WooCommerce – Manual, Phone & Email Orders | 98 | 1 | 5 | 600 | Non-prefixed function | ||
| #4162 | Shortcodes for Elementor | 98 | 5 | 3 | 5k+ | Missing direct file access protection | ||
| #4163 | Simple Shortcode for Google Maps | 98 | 2 | 5 | 3k+ | Non-prefixed hook name | ||
| #4164 | Product Variation Swatches for WooCommerce – Smart Swatches | 98 | 16 | 800 | Non-prefixed hook name | |||
| #4165 | Stock Exporter for WooCommerce | 98 | 2 | 14 | 1k+ | Non-prefixed hook name | ||
| #4166 | Tableberg – Simple Gutenberg Table Block | 98 | 3 | 4 | 3k+ | date date | ||
| #4167 | UF Health Require Image Alt Tags | 98 | 3 | 1 | 500 | Missing direct file access protection | ||
| #4168 | Video Player for WPBakery | 98 | 1 | 5 | 2k+ | trademarked term | ||
| #4169 | Cash On Pickup for WooCommerce | 98 | 16 | 4 | 8k+ | Text Domain Mismatch | ||
| #4170 | Custom Add to Cart labels for WooCommerce | 98 | 3 | 5 | 5k+ | Non Singular String Literal Text | ||
| #4171 | WCBoost – Products Compare | 98 | 17 | 40k+ | Non-prefixed global variable | |||
| #4172 | WPC Added To Cart Notification for WooCommerce | 98 | 17 | 3k+ | Non-prefixed class | |||
| #4173 | Product Slider Block for WooCommerce | 98 | 2 | 3 | 800 | Non-prefixed hook name | ||
| #4174 | Table Rate Shipping for WooCommerce | 98 | 12 | 20k+ | Non-prefixed function | |||
| #4175 | Google Analytics for WooCommerce | 98 | 20 | 100k+ | Non-prefixed class | |||
| #4176 | WP Edit Username | 98 | 1 | 14 | 2k+ | Non-prefixed hook name | ||
| #4177 | WP Rollback – Rollback Plugins and Themes | 98 | 1 | 9 | 300k+ | Non-prefixed hook name | ||
| #4178 | WPC Coupon Listing for WooCommerce | 98 | 18 | 1k+ | Non-prefixed class | |||
| #4179 | WPC Linked Variation for WooCommerce | 98 | 15 | 3k+ | Non-prefixed class | |||
| #4180 | WPC Name Your Price for WooCommerce | 98 | 16 | 6k+ | Non-prefixed class | |||
| #4181 | WPC Product Image Swap for WooCommerce | 98 | 15 | 1k+ | Non-prefixed class | |||
| #4182 | WPC Product Tabs for WooCommerce | 98 | 17 | 900 | Non-prefixed class | |||
| #4183 | WPC Product Videos for WooCommerce | 98 | 15 | 3k+ | Non-prefixed class | |||
| #4184 | WPC Sticky Add To Cart for WooCommerce | 98 | 17 | 2k+ | Non-prefixed class | |||
| #4185 | wpuntexturize | 98 | 1 | 6 | 900 | trademarked term | ||
| #4186 | Widget Content Blocks | 98 | 5 | 1 | 10k+ | Missing Translators Comment | ||
| #4187 | Add From Server Reloaded | 99 | 2 | 1 | 3k+ | Missing direct file access protection | ||
| #4188 | Animation Pack | 99 | 1 | 6 | 800 | Non-prefixed hook name | ||
| #4189 | Attributes for Blocks | 99 | 1 | 4 | 4k+ | Non-prefixed hook name | ||
| #4190 | Block Enhancements – Extended styling for the Block Editor | 99 | 17 | 700 | Non-prefixed hook name | |||
| #4191 | Block Specific Spam Woo Orders | 99 | 1 | 4 | 1k+ | Non-prefixed hook name | ||
| #4192 | BOX NOW Delivery | 99 | 1 | 2 | 5k+ | Non-prefixed hook name | ||
| #4193 | Classic Menu in Navigation Block | 99 | 1 | 3 | 2k+ | Non-prefixed class | ||
| #4194 | Clone / Duplicate Orders for WooCommerce | 99 | 1 | 2 | 900 | Discouraged text-domain loading | ||
| #4195 | Copy/Paste FlexContent Blocks for ACF | 99 | 1 | 1 | 900 | Non-prefixed hook name | ||
| #4196 | Custom Post Type Widgets | 99 | 7 | 3 | 10k+ | Non Singular String Literal Text | ||
| #4197 | Embed Block for TikTok | 99 | 1 | 2 | 500 | Non-prefixed hook name | ||
| #4198 | Awesome FAQ – Modern Accordion, Tabs, Responsive & Super Fast FAQ Builder | 99 | 7 | 800 | Non-prefixed class | |||
| #4199 | Helcim for WooCommerce | 99 | 4 | 800 | Discouraged text-domain loading | |||
| #4200 | HTML5 Video Player – Embed and Play Videos in Custom Player | 99 | 5 | 20k+ | Non-prefixed global variable |