Closed davideC00 closed 5 years ago
Now, for printing json metadata to html, each plugin use the function echo.
Using this approach leads to:
printf( '<script type="application/ld+json">%s</script>', json_encode( $array, JSON_PRETTY_PRINT) );
json_encode format the metatags automatically with JSON_PRETTY_PRINT. this is a common solution used by others plugin like Pressbook, Framework Seo ecc...
Solved 7e52ae4ecdc91e28c604a1be0dd8278ae4676c59
Please give us a description of what happened.
Now, for printing json metadata to html, each plugin use the function echo.
Using this approach leads to:
Describe the solution you'd like