wpml_st_get_post_string_packages
wpml_st_get_post_string_packages
Appears in: duplicate-post.3.2.2, duplicate-post.3.2.3, duplicate-post.3.2.4, duplicate-post.3.2.5, duplicate-post.3.2.6, duplicate-post.4.0.1, duplicate-post.4.0.2, duplicate-post.4.1.1, duplicate-post.4.1.2, duplicate-post.4.4, duplicate-post.4.5
Hook Type: filter
Displaying hooks found in version: duplicate-post.4.5apply_filters('wpml_st_get_post_string_packages') is found 2 times:
- /compat/wpml-functions.php line 87
global $duplicated_posts; foreach ( $duplicated_posts as $original_post_id => $duplicate_post_id ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals -- Reason: using WPML native filter. $original_string_packages = apply_filters( 'wpml_st_get_post_string_packages', false, $original_post_id ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals -- Reason: using WPML native filter. $new_string_packages = apply_filters( 'wpml_st_get_post_string_packages', false, $duplicate_post_id ); if ( is_array( $original_string_packages ) ) { foreach ( $original_string_packages as $original_string_package ) {
- /compat/wpml-functions.php line 90
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals -- Reason: using WPML native filter. $original_string_packages = apply_filters( 'wpml_st_get_post_string_packages', false, $original_post_id ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals -- Reason: using WPML native filter. $new_string_packages = apply_filters( 'wpml_st_get_post_string_packages', false, $duplicate_post_id ); if ( is_array( $original_string_packages ) ) { foreach ( $original_string_packages as $original_string_package ) { $translated_original_strings = $original_string_package->get_translated_strings( [] ); foreach ( $new_string_packages as $new_string_package ) {