: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
/* global wpforms_woocommerce_notifications */
* WooCommerce Notifications integration script.
const WPFormsWoocommerceNotifications = window.WPFormsWoocommerceNotifications || ( function( document, window, $ ) {
* Public functions and properties.
$( '#wpforms-woocommerce-close' ).on( 'click', app.dismiss );
const $notification = $btn.closest( '.wpforms-woocommerce-notification' );
action: 'wpforms_woocommerce_dismiss',
nonce: wpforms_woocommerce_notifications.nonce,
$.post( wpforms_woocommerce_notifications.ajax_url, data, function( res ) {
// eslint-disable-next-line no-console
} ).fail( function( xhr ) {
// eslint-disable-next-line no-console
console.log( xhr.responseText );
}( document, window, jQuery ) );
WPFormsWoocommerceNotifications.init();