| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Outputs a message in the metabox when no API Key is defined. | |
| 3 | + * Outputs a message in the metabox when no Access Token is defined. | |
| 4 | 4 | * |
| 5 | 5 | * @package ConvertKit |
| 6 | 6 | * @author ConvertKit |
| 7 | 7 | */ |
| @@ -9,12 +9,15 @@ | ||
| 9 | 9 | ?> |
| 10 | 10 | |
| 11 | 11 | <p> |
| 12 | 12 | <?php |
| 13 | - echo sprintf( | |
| 14 | - /* translators: %1$s: Post Type Singular Name, %2$s: Link to Plugin Settings */ | |
| 15 | - esc_html__( 'To configure the ConvertKit Form / Landing Page to display on this %1$s, enter your ConvertKit API credentials in the %2$s', 'convertkit' ), | |
| 16 | - esc_attr( $post_type->labels->singular_name ), | |
| 17 | - '<a href="' . esc_url( convertkit_get_settings_link() ) . '">' . esc_html__( 'Plugin Settings', 'convertkit' ) . '</a>' | |
| 13 | + printf( | |
| 14 | + '%s %s', | |
| 15 | + esc_html__( 'For the Kit Plugin to function, please', 'convertkit' ), | |
| 16 | + sprintf( | |
| 17 | + '<a href="%s">%s</a>', | |
| 18 | + esc_url( $api->get_oauth_url( admin_url( 'options-general.php?page=_wp_convertkit_settings' ), get_site_url() ) ), | |
| 19 | + esc_html__( 'connect your Kit account.', 'convertkit' ) | |
| 20 | + ) | |
| 18 | 21 | ); |
| 19 | 22 | ?> |
| 20 | 23 | </p> |