PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/helpers/environment-helper.php +6 -0 18.428.5 View file →
@@ -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 /**