Title: Generate_LDJson after plugin update
Last modified: June 25, 2024

---

# Generate_LDJson after plugin update

 *  Resolved [koganas](https://wordpress.org/support/users/koganas/)
 * (@koganas)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/get_ld_json_website-after-plugin-update/)
 * I’m updating the plugin in a WordPress project from version 4.2.8 to 5.0.6. After
   some significant changes on version 5, I was unable to find details in the documentation,
   so I opened this topic.
 * I used `get_ld_json_website()` and `get_ld_json_links()` in the project, but 
   it has been removed after v5. What methods can I use in place, and where can 
   I find better documentation about it since `The_SEO_Framework\Generate_LDJson`
   was dropped from the plugin?
    -  This topic was modified 1 year, 10 months ago by [koganas](https://wordpress.org/support/users/koganas/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/get_ld_json_website-after-plugin-update/#post-17858980)
 * Hello!
 * TSF v5.0 overhauled many things, including a brand new Schema.org structured 
   data generator.
 * The old code for the structured data is at extreme odds with the new generator.
   I deleted the old functions because I couldn’t match them with the new generator;
   at best, they created a large chain of deprecated calls.
 * I’m not sure why you implemented these deleted functions; they were part of the
   standard TSF renderer and outputted the HTML script containers as a whole. But
   I think you could use `tsf()->filter()->escape()->json_encode_script( tsf()->
   schema()->get_generated_graph() )` to get the entire Schema.org graph formatted
   and wrap that in a `<script type=application/ld+json>` element.
 * Please note that `tsf()->filter()->escape()->json_encode_script()` already escapes;
   double escaping JSON will cause rendering errors.
 * If you would like me to give a more concrete answer that might be more secure
   in your scenario, please show me the old code. Thank you!
    -  This reply was modified 1 year, 10 months ago by [Sybre Waaijer](https://wordpress.org/support/users/cybr/).
      Reason: more info

Viewing 1 replies (of 1 total)

The topic ‘Generate_LDJson after plugin update’ is closed to new replies.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

## Tags

 * [ld+json](https://wordpress.org/support/topic-tag/ldjson/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/get_ld_json_website-after-plugin-update/#post-17858980)
 * Status: resolved