Json en wordpress

[ad_1]

hola, tengo este codigo

`$fp = fopen($pathJson, ‘w’);`
`if (is_writable($pathJson)) {`
`fwrite($fp,$jsonString);`
`echo $jsonString;`
`}`
`fclose($fp);`

​

el proble que tengo es que no me sobreescribe el Json. El if funciona porque entra y realiza el echo

pero el .json sigue vacio

probé con otra funcion acceder al .json cargado previamente de forma manual y funciona perfecto

cual podria ser el problema?

​

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer