Not able to create a taxonomy term in PHP #7710
Answered
by
jasonvarga
jarnalyrkar
asked this question in
Troubleshooting
-
The documentation explains how to create a taxonomy term from PHP here: https://statamic.dev/repositories/term-repository#creating My code is this:
If i dump the object before saving, this is what it looks like: Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
jasonvarga
Mar 16, 2023
Replies: 1 comment 1 reply
-
In the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jarnalyrkar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the
dataForLocale
method, the locale argument should be your site handle.