| @@ -12,8 +12,14 @@ | ||
| 12 | 12 | * |
| 13 | 13 | * @return bool True if WordPress is currently running on production, false for all other environments. |
| 14 | 14 | */ |
| 15 | 15 | public function is_production_mode() { |
| 16 | + // phpcs:ignore Yoast.NamingConventions.ValidHookName.WrongPrefix -- existing hook. | |
| 17 | + $override = \apply_filters( 'yoast_seo_development_mode', false ); | |
| 18 | + if ( $override ) { | |
| 19 | + return true; | |
| 20 | + } | |
| 21 | + | |
| 16 | 22 | return $this->get_wp_environment() === 'production'; |
| 17 | 23 | } |
| 18 | 24 | |
| 19 | 25 | /** |