Title: Structured data through multiple bound callbacks in filter.
Last modified: February 20, 2024

---

# Structured data through multiple bound callbacks in filter.

 *  Resolved [controvi](https://wordpress.org/support/users/controvi/)
 * (@controvi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/structured-data-through-multiple-bound-callbacks-in-filter/)
 * Recently the company I work for wanted to implement different custom generated
   block graph data.
   I crated filters for it and it seems like the Yoast plugin 
   will not take multiple Filter bound Callbacks that are set.I did a few tests 
   and in no way was I able to fix the issue.To show what I did.
    - setup a class necessary for the added graph piece.
    - added the filter calling a callback function to add the instance of the piece
      to the pieces array that comes with the filter.
    - Tested if it works. Result: CHECK
    - Added a second filter for some test data on the same page.
    - Testing if it works. Result: only the second added filter took affect.
    - Tried adding a third filter
    - Tested if it works. Result: only the third filter took affect.
 * I checked the wp_filter global to see if maybe 1 filter was overwriting the others
   but this was not the case and I saw all the added callbacks nicely layed out.
 * After lots of testing and debugging I can confirm that doing the same with adding
   multiple filters for example on the wp_title works just fine.
   As you can see,
   apparently it seems like the Yoast plugin is only reading the final item in the
   callback array instead of looping through it in order of priority.Any one or 
   the devs of Yoast have any idea what is going on?Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/structured-data-through-multiple-bound-callbacks-in-filter/#post-17441091)
 * Hello [@controvi](https://wordpress.org/support/users/controvi/),
 * Thanks for using the Yoast SEO plugin. We’re actively using the bug tracking 
   on our GitHub repository, so please create a new issue for our developers [here](https://github.com/Yoast/wordpress-seo/issues);
   if you also have a PR to “fix” it, we’d welcome that. Also, include your code
   snippets (obfuscate as needed) and detailed steps so we can quickly replicate
   the setup in a test environment.
 *  Thread Starter [controvi](https://wordpress.org/support/users/controvi/)
 * (@controvi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/structured-data-through-multiple-bound-callbacks-in-filter/#post-17442495)
 * For possible future reference.
   Link to bug report: [https://github.com/Yoast/wordpress-seo/issues/21165](https://github.com/Yoast/wordpress-seo/issues/21165)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Structured data through multiple bound callbacks in filter.’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [controvi](https://wordpress.org/support/users/controvi/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/structured-data-through-multiple-bound-callbacks-in-filter/#post-17442495)
 * Status: resolved