• Resolved propz

    (@propz)


    Hi guys,

    first and foremost: Thanks. for this amazing Plugin, I’m loving it!!!

    But I think I’ve actually found a bug. I renamed my WP API prefix for security reasons. It’s done with the ‘rest_url_prefix’ filter.

    add_filter( 'rest_url_prefix', function() {
    	return 'customprefix';
    });

    I didn’t notice anything in the frontend but the lazy blocks backend breaks. I’ve got this JS error:

    Failed to load resource: the server responded with a status of 404 (Not Found): https://mydomain.com/customprefix/wp/v2/lazyblocks/247?_locale=user

    I think the API URL’s may be hardcoded in the plugin or something similar. Can you take a look at it?

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Thread Starter propz

    (@propz)

    Ok, I fixed it myself.

    You have to save permalinks after you changed the REST API prefix… Now everything is fine ^^

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin crashes in backend if WP default API prefix is renamed’ is closed to new replies.