PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/compatibility/multilingual/providers/wpml-provider.php +25 -0 2.12.2 → 2.12.8 View file →
@@ -310,8 +310,33 @@
310 310 return is_string( $translated ) ? $translated : $value;
311 311 }
312 312
313 313 /**
314 + * {@inheritDoc}
315 + *
316 + * Removes the package and its translations from WPML via the
317 + * `wpml_delete_package` action, keyed by the package name + kind.
318 + *
319 + * @param array<string,string> $package Package descriptor.
320 + * @since 2.12.3
321 + * @return void
322 + */
323 + public function delete_package( array $package ): void {
324 + if ( ! $this->supports_packages() ) {
325 + return;
326 + }
327 +
328 + $name = $package['name'] ?? '';
329 + $kind = $package['kind'] ?? '';
330 +
331 + if ( '' === $name || '' === $kind ) {
332 + return;
333 + }
334 +
335 + do_action( 'wpml_delete_package', $name, $kind );
336 + }
337 +
338 + /**
314 339 * Build the active-language list from the most reliable WPML surface available.
315 340 *
316 341 * Tries `apply_filters( 'wpml_active_languages', ... )` first (the documented
317 342 * public API that returns URLs for the current page). When that returns no