| @@ -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 | * |
| @@ -323,80 +303,8 @@ | ||
| 323 | 303 | */ |
| 324 | 304 | $importers = apply_filters( 'convertkit_get_form_importers', $importers ); |
| 325 | 305 | |
| 326 | 306 | return $importers; |
| 327 | - | |
| 328 | -} | |
| 329 | - | |
| 330 | -/** | |
| 331 | - * Helper method to get registered abilities. | |
| 332 | - * | |
| 333 | - * @since 3.4.0 | |
| 334 | - * | |
| 335 | - * @return array Abilities. | |
| 336 | - */ | |
| 337 | -function convertkit_get_abilities() { | |
| 338 | - | |
| 339 | - $abilities = array(); | |
| 340 | - | |
| 341 | - /** | |
| 342 | - * Registers abilities for the Kit Plugin. | |
| 343 | - * | |
| 344 | - * @since 3.4.0 | |
| 345 | - * | |
| 346 | - * @param array $abilities Abilities. | |
| 347 | - */ | |
| 348 | - $abilities = apply_filters( 'convertkit_abilities', $abilities ); | |
| 349 | - | |
| 350 | - return $abilities; | |
| 351 | - | |
| 352 | -} | |
| 353 | - | |
| 354 | -/** | |
| 355 | - * Helper method to get registered MCP resources. | |
| 356 | - * | |
| 357 | - * @since 3.4.2 | |
| 358 | - * | |
| 359 | - * @return array Resources. | |
| 360 | - */ | |
| 361 | -function convertkit_get_resources() { | |
| 362 | - | |
| 363 | - $resources = array(); | |
| 364 | - | |
| 365 | - /** | |
| 366 | - * Registers MCP resources for the Kit Plugin. | |
| 367 | - * | |
| 368 | - * @since 3.4.2 | |
| 369 | - * | |
| 370 | - * @param array $resources Resources. | |
| 371 | - */ | |
| 372 | - $resources = apply_filters( 'convertkit_resources', $resources ); | |
| 373 | - | |
| 374 | - return $resources; | |
| 375 | - | |
| 376 | -} | |
| 377 | - | |
| 378 | -/** | |
| 379 | - * Helper method to get registered MCP prompts. | |
| 380 | - * | |
| 381 | - * @since 3.4.2 | |
| 382 | - * | |
| 383 | - * @return array Prompts. | |
| 384 | - */ | |
| 385 | -function convertkit_get_prompts() { | |
| 386 | - | |
| 387 | - $prompts = array(); | |
| 388 | - | |
| 389 | - /** | |
| 390 | - * Registers MCP prompts for the Kit Plugin. | |
| 391 | - * | |
| 392 | - * @since 3.4.2 | |
| 393 | - * | |
| 394 | - * @param array $prompts Prompts. | |
| 395 | - */ | |
| 396 | - $prompts = apply_filters( 'convertkit_prompts', $prompts ); | |
| 397 | - | |
| 398 | - return $prompts; | |
| 399 | 307 | |
| 400 | 308 | } |
| 401 | 309 | |
| 402 | 310 | /** |