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 6.0

public function admin_notice( $message = '' ) {
	switch ( $message ) {
		case 'success':
			wp_admin_notice(
				esc_html( __( "Connection established.", 'contact-form-7' ) ),
				'type=success'
			);

			break;
		case 'failed':
			wp_admin_notice(
				sprintf(
					'<strong>%1$s</strong>: %2$s',
					esc_html( __( "Error", 'contact-form-7' ) ),
					esc_html( __( "Failed to establish connection. Please double-check your configuration.", 'contact-form-7' ) )
				),
				'type=error'
			);

			break;
		case 'updated':
			wp_admin_notice(
				esc_html( __( "Configuration updated.", 'contact-form-7' ) ),
				'type=success'
			);

			break;
	}
}