Skip to content

Commit

Permalink
feat: allow editors to pull content (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
leogermani authored Dec 19, 2023
1 parent a4a788b commit 3021f7e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions includes/distributor-customizations/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 =====
* =========================================
*/

0 comments on commit 3021f7e

Please sign in to comment.