Skip Navigation

[Closed] Problems with minus char

This support ticket is created 10 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Bigul 10 years, 3 months ago.

Assigned support staff: Bigul.

Author
Posts
#31278

I'd like to change custom fields from wpcf-name to wpcf_name

when i export custom fields to json and i try to import them in jquery (javascript) i have a very big problem:

- I Choose the Json item: data.post.custom_fields.wpcf-name
- Variables in JS can't have "-" char because it means wpcf - name (minus)
- So i can't use this type of notation

Is there any solution to this ?

#31339

Bigul
Supporter

Hi Alessandro,

Sorry. It will not be possible to rename wpcf-name to wpcf_name.

---
With Regards

Bigul

The topic ‘[Closed] Problems with minus char’ is closed to new replies.