Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: handle-ajax-api.js
const handleAjax = function( url, params, functions ) { wp.apiFetch( { path: url, method: 'POST', data: params, } ).then( ( res ) => { if ( 'function' === typeof functions.success ) { functions.success( res ); } } ).catch( ( err ) => { if ( 'function' === typeof functions.error ) { functions.error( err ); } } ).then( () => { if ( 'function' === typeof functions.completed ) { functions.completed(); } } ); }; export default handleAjax;