From 4bc720820d2a5795c77e8899662443a35bcfeb8a Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Tue, 19 Dec 2023 11:10:02 -0300 Subject: [PATCH] feat: allow editors to pull content --- includes/distributor-customizations/global.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/includes/distributor-customizations/global.php b/includes/distributor-customizations/global.php index aabe682e..71201db0 100644 --- a/includes/distributor-customizations/global.php +++ b/includes/distributor-customizations/global.php @@ -43,3 +43,19 @@ function( $post_array, $remote_id, $post ) { * ===== End of Post publication date ====== * ========================================= */ + +/** + * ========================================= + * ===== Allow editors to pull content ===== + * ========================================= + */ +function newspack_network_filter_distributor_menu_cap() { + return 'edit_others_posts'; +} +add_filter( 'dt_capabilities', 'newspack_network_filter_distributor_menu_cap' ); +add_filter( 'dt_pull_capabilities', 'newspack_network_filter_distributor_menu_cap' ); +/** + * ========================================= + * ==== End of editors to pull content ===== + * ========================================= + */