WPCF7_ConstantContact::admin_notice()publicCF7 1.0

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

Хуков нет.

Возвращает

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

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

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

Код WPCF7_ConstantContact::admin_notice() CF7 5.9.3

public function admin_notice( $message = '' ) {
	switch ( $message ) {
		case 'success':
			echo sprintf(
				'<div class="notice notice-success"><p>%s</p></div>',
				esc_html( __( "Connection established.", 'contact-form-7' ) )
			);
			break;
		case 'failed':
			echo sprintf(
				'<div class="notice notice-error"><p><strong>%1$s</strong>: %2$s</p></div>',
				esc_html( __( "Error", 'contact-form-7' ) ),
				esc_html( __( "Failed to establish connection. Please double-check your configuration.", 'contact-form-7' ) )
			);
			break;
		case 'updated':
			echo sprintf(
				'<div class="notice notice-success"><p>%s</p></div>',
				esc_html( __( "Configuration updated.", 'contact-form-7' ) )
			);
			break;
	}
}