sprintf( /* translators: 1 the missing plugin name */ __( 'Google for WooCommerce requires %1$s to be enabled.', 'google-listings-and-ads' ), $plugin_name ) ); } /** * Create a new instance of the exception when an incompatible plugin/extension is activated. * * @param string $plugin_name The name of the incompatible plugin. * * @return static */ public static function incompatible_plugin( string $plugin_name ): ExtensionRequirementException { return new static( sprintf( 'Google for WooCommerce is incompatible with %1$s.', // Fallback exception message. $plugin_name ), 0, null, fn () => sprintf( /* translators: 1 the incompatible plugin name */ __( 'Google for WooCommerce is incompatible with %1$s.', 'google-listings-and-ads' ), $plugin_name ) ); } }