Closed hdkcreative closed 4 years ago
Hi @hdkcreative!
This is an issue tracker for developing a REST API for menus in WordPress. The best place for support questions is the WordPress forums or Stack Exchange.
Taking a quick look, I think null would be getting returned if $contents
is not valid JSON. I'd var_dump( $contents )
to make sure it is what you expect. Perhaps you are hitting a wrong URL.
hi team !
i have my worpdress in a subfolder : mydomain.com/cms
i create another folder /test-api and inside i create a file: index.php
content of this file index.php :
when in the browser i try to access to : http://mydomain/test-api/index.php the result is NULL...
but if i try to get this same file /test-api/index.php from another domain, this work !
but not in the same domain . . .
please help me !