WPCF7_Sendinblue::admin_notice()publicCF7 1.0

Метод класса: WPCF7_Sendinblue{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPCF7_Sendinblue = new WPCF7_Sendinblue();
$WPCF7_Sendinblue->admin_notice( $message );
$message **
-
По умолчанию: ''

Код WPCF7_Sendinblue::admin_notice() CF7 5.9.3

public function admin_notice( $message = '' ) {
	if ( 'unauthorized' == $message ) {
		echo sprintf(
			'<div class="notice notice-error"><p><strong>%1$s</strong>: %2$s</p></div>',
			esc_html( __( "Error", 'contact-form-7' ) ),
			esc_html( __( "You have not been authenticated. Make sure the provided API key is correct.", 'contact-form-7' ) )
		);
	}

	if ( 'invalid' == $message ) {
		echo sprintf(
			'<div class="notice notice-error"><p><strong>%1$s</strong>: %2$s</p></div>',
			esc_html( __( "Error", 'contact-form-7' ) ),
			esc_html( __( "Invalid key values.", 'contact-form-7' ) )
		);
	}

	if ( 'success' == $message ) {
		echo sprintf(
			'<div class="notice notice-success"><p>%s</p></div>',
			esc_html( __( 'Settings saved.', 'contact-form-7' ) )
		);
	}
}