duplicate_post_meta_keys_filter
duplicate_post_meta_keys_filter
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('duplicate_post_meta_keys_filter') is found 2 times:
- /admin-functions.php line 380
* @param array $meta_keys The list of meta fields name, with the ones in the excludelist already removed. * * @return array */ $meta_keys = apply_filters( 'duplicate_post_meta_keys_filter', $meta_keys ); foreach ( $meta_keys as $meta_key ) { $meta_values = get_post_custom_values( $meta_key, $post->ID ); foreach ( $meta_values as $meta_value ) { $meta_value = maybe_unserialize( $meta_value ); add_post_meta( $new_id, $meta_key, duplicate_post_wp_slash( $meta_value ) );
- /src/post-duplicator.php line 291
* @param array $meta_keys The list of meta fields name, with the ones in the excludelist already removed. * * @return array */ $meta_keys = \apply_filters( 'duplicate_post_meta_keys_filter', $meta_keys ); } foreach ( $meta_keys as $meta_key ) { $meta_values = \get_post_custom_values( $meta_key, $post->ID ); // Clear existing meta data so that add_post_meta() works properly with non-unique keys.