: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
/* eslint-disable camelcase */
/* global ajaxurl, wpforms_education_pointers_payment */
* Module for handling education pointers related to payments in WPForms.
const WPFormsPointersPayment = window.WPFormsPointersPayment || ( function( document, window, $, l10n ) {
* Unique ID for the pointer.
* Cryptographic token for validating authorized Ajax data exchange.
* Public functions and properties.
* Setup. Prepare some variables.
el.$document = $( document );
el.$document.on( 'click', '#toplevel_page_wpforms-overview [href$="-payments"], #wpforms-education-pointers-payments', app.handleOnClick );
* Callback for clicking on the action link.
* @param {Object} event An event which takes place in the DOM.
// Prevent the default action.
// Get the href attribute.
const href = $this.attr( 'href' );
// Return early if href is missing.
// Hide the pointer before redirecting.
$this.closest( '.wp-pointer-content' ).parent().hide();
pointer_id: vars.pointerId,
action: 'wpforms_education_pointers_engagement',
window.location.href = href;
// Provide access to public functions/properties.
}( document, window, jQuery, wpforms_education_pointers_payment ) );
WPFormsPointersPayment.init();