So to allow authors and above role articles to be published auto on Apple News do i add this code to my class-admin-apple-post-sync.php?
add_filter( 'apple_news_publish_capability', function() {
return 'publish_posts';
}, 10, 0 );
or do i change the code like this (below).. ?
public function do_publish( $id, $post ) {
if ( 'publish' != $post->post_status
|| ! in_array( $post->post_type, $this->settings->get( 'post_types' ) )
|| ! current_user_can( apply_filters( 'apple_news_publish_capability', <strong>'publish_posts'</strong> ) ) ) {
return;
}