# imagify/2.2.8/views/notice-wrong-api-key.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version 2.2.8. 31 lines.

- Page: https://pluginprobe.com/plugins/imagify/2.2.8/code/views/notice-wrong-api-key.php
- Raw: https://pluginprobe.com/plugins/imagify/2.2.8/raw/views/notice-wrong-api-key.php
- Modified: 2026-01-14T18:08:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/2.2.8/code/views/notice-wrong-api-key.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || exit;

$this->print_template(
	'notice-header',
	[
		'title'   => esc_html__( 'Your API key isn\'t valid!', 'imagify' ),
		'classes' => [ 'error' ],
	]
);
?>
<p>
	<?php wp_nonce_field( 'imagify-signup', 'imagifysignupnonce', false ); ?>
	<?php
	printf(
		/* translators: 1 and 2 are link tag starts, 3 is a link tag end. */
		esc_html__( 'Go to your Imagify account page to get your API Key and specify it on %1$syour settings%3$s or %2$screate an account for free%3$s if you don\'t have one yet.', 'imagify' ),
		'<a href="' . esc_url( get_imagify_admin_url() ) . '">',
		'<a id="imagify-signup" target="_blank" href="' . esc_url( imagify_get_external_url( 'register' ) ) . '">',
		'</a>'
	);
	?>
</p>
<?php
$this->print_template(
	'notice-footer',
	[
		'dismissible' => 'wrong-api-key',
	]
);

```
