wpml_st_get_post_string_packages

wpml_st_get_post_string_packages

Hook Type: filter

See hook in core

Displaying hooks found in version: duplicate-post.4.5

apply_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 ) {