WPCF7_Sendinblue::admin_notice
Метод класса: WPCF7_Sendinblue{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPCF7_Sendinblue = new WPCF7_Sendinblue(); $WPCF7_Sendinblue->admin_notice( $message );
- $message
- .
По умолчанию:''
Код WPCF7_Sendinblue::admin_notice() WPCF7 Sendinblue::admin notice CF7 6.1.6
public function admin_notice( $message = '' ) {
if ( 'unauthorized' === $message ) {
wp_admin_notice(
sprintf(
'<strong>%1$s</strong>: %2$s',
__( 'Error', 'contact-form-7' ),
__( 'You have not been authenticated. Make sure the provided API key is correct.', 'contact-form-7' )
),
array( 'type' => 'error' )
);
}
if ( 'invalid' === $message ) {
wp_admin_notice(
sprintf(
'<strong>%1$s</strong>: %2$s',
__( 'Error', 'contact-form-7' ),
__( 'Invalid key values.', 'contact-form-7' )
),
array( 'type' => 'error' )
);
}
if ( 'success' === $message ) {
wp_admin_notice(
__( 'Settings saved.', 'contact-form-7' ),
array( 'type' => 'success' )
);
}
}