Skip Navigation

[Closed] wpApiSettings getting removed from post type

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 11 months ago.

Author
Posts
#2639511
Screen Shot 2023-08-30 at 3.51.22 PM.png

I am trying to: make AJAX call to a custom post type.

Link to a page where the issue can be seen: hidden link

I expected to see: Chrome devtools ... wpApiSettings variable should be set

Instead, I got: wpApiSettings undefined

#2639663

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

Have you done anything to make a JavaScript object wpApiSettings available on the front end?

It's not something that is available by default on a WordPress site as far as I know, but you can use wp_localize_script to make data available on the front end in such an object, perhaps that is what you are referring to?

This doesn't seem to be related to Toolset, sorry.

The topic ‘[Closed] wpApiSettings getting removed from post type’ is closed to new replies.