
console.log("publish error");

wp.data.dispatch( 'core/notices' ).createNotice(
	'error', // Can be one of: success, info, warning, error.
	'impossible de publier : le pays est invalide', // Text string to display.
	{
		isDismissible: true, // Whether the user can dismiss the notice.
	}
);

//( function ( wp ) {
//	console.log("publish error");
//	wp.data.dispatch( 'core/notices' ).createNotice(
//		'error', // Can be one of: success, info, warning, error.
//		'impossible de publie : le pays est invalide', // Text string to display.
//		{
//			isDismissible: true, // Whether the user can dismiss the notice.
//		}
//	);
//} )( window.wp );
