TypeError: wp.flag(...).id is not a function
at _callee$ (script.min.js?ver=1640242704:567)
at tryCatch (script.min.js?ver=1640242704:90432)
at Generator.invoke [as _invoke] (script.min.js?ver=1640242704:90662)
at Generator.next (script.min.js?ver=1640242704:90487)
at asyncGeneratorStep (script.min.js?ver=1640242704:2185)
at _next (script.min.js?ver=1640242704:2207)
at script.min.js?ver=1640242704:2214
at new Promise (<anonymous>)
at script.min.js?ver=1640242704:2203
at fetchPosts (script.min.js?ver=1640242704:592)
Creating a new custom post (flag) worked fine. But every time I try to update which requires the .id(122) function, I get it's not a function... can you plz tell me what am I doing wrong ...
I've been following the documentation to the dot ... here is my code:
But this is the error message I'm getting:
Creating a new custom post (flag) worked fine. But every time I try to update which requires the .id(122) function, I get it's not a function... can you plz tell me what am I doing wrong ...