: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
el.$selectPageContainer.show();
el.$wizardContainer.fadeIn();
el.$wizardContainer.fadeOut();
app.initialStateToggle();
$( document ).trigger( 'wpformsWizardPopupClose' );
* Init embed page tooltip.
initTooltip: function() {
if ( typeof $.fn.tooltipster === 'undefined' ) {
var $dot = $( '<span class="wpforms-admin-form-embed-wizard-dot"> </span>' ),
isGutenberg = app.isGutenberg(),
anchor = isGutenberg ? '.block-editor .edit-post-header' : '#wp-content-editor-tools .wpforms-insert-form-button';
content : $( '#wpforms-admin-form-embed-wizard-tooltip-content' ),
theme : [ 'tooltipster-default', 'wpforms-admin-form-embed-wizard' ],
side : isGutenberg ? 'bottom' : 'right',
functionReady : function( instance, helper ) {
instance._$tooltip.on( 'click', 'button', function() {
$( '.wpforms-admin-form-embed-wizard-dot' ).remove();
$dot.insertAfter( anchor ).tooltipster( tooltipsterArgs ).tooltipster( 'open' );
// The Gutenberg header can be loaded after the window load event.
// We have to wait until the Gutenberg heading is added to the DOM.
const closeAnchorListener = wp.data.subscribe( function() {
if ( ! $( anchor ).length ) {
// Close the listener to avoid an infinite loop.
$dot.insertAfter( anchor ).tooltipster( tooltipsterArgs ).tooltipster( 'open' );
* Check if we're in Gutenberg editor.
* @returns {boolean} Is Gutenberg or not.
isGutenberg: function() {
return typeof wp !== 'undefined' && Object.prototype.hasOwnProperty.call( wp, 'blocks' );
// Provide access to public functions/properties.
}( document, window, jQuery ) );
WPFormsFormEmbedWizard.init();