javascript - Overwrite validation for creation of wordpress posts via rest api -
i ran problem wordpress side:
i want build javascript app can create posts from. should seperated wordpress backend , communicate via rest api. far good. connecting , can create post.
the problem comes tags. want give user possibility type in tags wants, comma seperated , send them wordpress post. problem is: comma seperated list of tags, of in wordpress, not. can't send them wordpress because accepts array of integers.
so question: there solution, than
- get available tags
- check ones of entered tags in wordpress
- create others
- build array ideas , send article
because process take long if user doesn't have in mean time , close window before done.
my preferred way send comma-seperated string or array of slugs backend , create missing tags.
is there way that? in advance :)
Comments
Post a Comment