duplicate_post_taxonomies_excludelist_filter

duplicate_post_taxonomies_excludelist_filter

Hook Type: filter

See hook in core

Displaying hooks found in version: duplicate-post.4.5

apply_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' ] );