Improve fictioneer_is_author() checks

This commit is contained in:
Tetrakern 2024-08-17 18:37:50 +02:00
parent de4a92d618
commit 4654da95e7

View File

@ -1031,7 +1031,10 @@ if ( ! function_exists( 'fictioneer_is_author' ) ) {
}
// Check capabilities
$check = user_can( $user_id, 'publish_posts' );
$check = user_can( $user_id, 'publish_posts' ) ||
user_can( $user_id, 'publish_fcn_stories' ) ||
user_can( $user_id, 'publish_fcn_chapters' ) ||
user_can( $user_id, 'publish_fcn_collections' );
// Filter
$check = apply_filters( 'fictioneer_filter_is_author', $check, $user_id );