| @@ -53,8 +53,13 @@ | ||
| 53 | 53 | if ( $post_type !== 'page' ) { |
| 54 | 54 | return $buttons; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + // Don't show the button if the user cannot create and publish Pages. | |
| 58 | + if ( ! convertkit_user_can_create_published_post_type( $post_type ) ) { | |
| 59 | + return $buttons; | |
| 60 | + } | |
| 61 | + | |
| 57 | 62 | // Register button. |
| 58 | 63 | $buttons['convertkit_landing_page_setup'] = array( |
| 59 | 64 | 'url' => add_query_arg( |
| 60 | 65 | array( |