duplicate_post_taxonomies_excludelist_filter
duplicate_post_taxonomies_excludelist_filter
Appears in: 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_taxonomies_excludelist_filter') is found 2 times:
- /admin-functions.php line 301
* @param array $taxonomies_blacklist The taxonomy excludelist from the options. * * @return array */ $taxonomies_blacklist = apply_filters( 'duplicate_post_taxonomies_excludelist_filter', $taxonomies_blacklist ); $taxonomies = array_diff( $post_taxonomies, $taxonomies_blacklist ); foreach ( $taxonomies as $taxonomy ) { $post_terms = wp_get_object_terms( $post->ID, $taxonomy, [ 'orderby' => 'term_order' ] ); $terms = []; $num_terms = count( $post_terms );
- /src/post-duplicator.php line 215
* @param array $taxonomies_excludelist The taxonomy excludelist from the options. * * @return array */ $taxonomies_excludelist = \apply_filters( 'duplicate_post_taxonomies_excludelist_filter', $taxonomies_excludelist ); } $post_taxonomies = \array_diff( $post_taxonomies, $taxonomies_excludelist ); foreach ( $post_taxonomies as $taxonomy ) { $post_terms = \wp_get_object_terms( $post->ID, $taxonomy, [ 'orderby' => 'term_order' ] );