duplicate_post_show_link

duplicate_post_show_link

Hook Type: filter

See hook in core

Displaying hooks found in version: duplicate-post.4.5

apply_filters('duplicate_post_show_link') is found 1 times:

  • /src/permissions-helper.php line 214
    		 * @param WP_Post $post          The post object.
    		 *
    		 * @return bool Whether or not to display the duplicate post links.
    		 */
    		$display_links = \apply_filters( 'duplicate_post_show_link', $this->is_current_user_allowed_to_copy() && $this->is_post_type_enabled( $post->post_type ), $post );
    
    		return ! $this->is_rewrite_and_republish_copy( $post ) && $display_links;
    	}
    
    	/**
    	 * Determines if the Rewrite & Republish link for the post should be displayed.