: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Install Plugin Popup Popup
Vue.component('install-plugin-popup', {
name: 'install-plugin-popup',
template: '#install-plugin-popup',
* Install or Activate Plugin
installOrActivatePlugin : function( plugin, pluginPath, action ){
this.installerStatus = 'loading';
let data = new FormData();
data.append( 'action', action );
data.append( 'nonce', cff_builder.nonce );
data.append( 'plugin', pluginPath );
data.append( 'type', 'plugin' );
fetch(cff_builder.ajax_handler, {
credentials: 'same-origin',
.then(response => response.json())
if( data.success == true ) {
this.installerStatus = null;