| @@ -147,28 +147,8 @@ | ||
| 147 | 147 | |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | - * Determines whether the current user can create and publish the given Post Type. | |
| 152 | - * | |
| 153 | - * @since 3.3.9 | |
| 154 | - * | |
| 155 | - * @param string $post_type Post Type. | |
| 156 | - * @return bool User can create and publish Post Type. | |
| 157 | - */ | |
| 158 | -function convertkit_user_can_create_published_post_type( $post_type ) { | |
| 159 | - | |
| 160 | - $post_type_object = get_post_type_object( $post_type ); | |
| 161 | - | |
| 162 | - if ( ! $post_type_object ) { | |
| 163 | - return false; | |
| 164 | - } | |
| 165 | - | |
| 166 | - return current_user_can( $post_type_object->cap->create_posts ) && current_user_can( $post_type_object->cap->publish_posts ); | |
| 167 | - | |
| 168 | -} | |
| 169 | - | |
| 170 | -/** | |
| 171 | 151 | * Helper method to get supported Post Types for Restricted Content (Member's Content) |
| 172 | 152 | * |
| 173 | 153 | * @since 2.1.0 |
| 174 | 154 | * |