duplicate_post_excludelist_filter

duplicate_post_excludelist_filter

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: duplicate-post.4.5

apply_filters('duplicate_post_excludelist_filter') is found 2 times:

  • /admin-functions.php line 356
    	 * @param array $meta_blacklist The meta fields excludelist from the options.
    	 *
    	 * @return array
    	 */
    	$meta_blacklist = apply_filters( 'duplicate_post_excludelist_filter', $meta_blacklist );
    
    	$meta_blacklist_string = '(' . implode( ')|(', $meta_blacklist ) . ')';
    	if ( strpos( $meta_blacklist_string, '*' ) !== false ) {
    		$meta_blacklist_string = str_replace( [ '*' ], [ '[a-zA-Z0-9_]*' ], $meta_blacklist_string );
    
    		$meta_keys = [];
    
  • /src/post-duplicator.php line 265
    			 * @param array $meta_excludelist The meta fields excludelist from the options.
    			 *
    			 * @return array
    			 */
    			$meta_excludelist = \apply_filters( 'duplicate_post_excludelist_filter', $meta_excludelist );
    		}
    
    		$meta_excludelist_string = '(' . \implode( ')|(', $meta_excludelist ) . ')';
    		if ( \strpos( $meta_excludelist_string, '*' ) !== false ) {
    			$meta_excludelist_string = \str_replace( [ '*' ], [ '[a-zA-Z0-9_]*' ], $meta_excludelist_string );
    
    

See this hook used in plugins: