Title: Structure data identifier (@id)
Last modified: April 24, 2019

---

# Structure data identifier (@id)

 *  Resolved [ranone](https://wordpress.org/support/users/ranone/)
 * (@ranone)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/structure-data-identifier-id/)
 * Congratulations for the plugin! 🙂
 * I’m testing it in all its functions…
 * I was wondering if there is the possibility to insert an identifier (@id) property
   on the structured data in order to identify the Recipe data and maybe insert 
   other values in it …
 * Example:
 *     ```
       <script type="application/ld+json">
       {
        "@context":"http://schema.org/",
        "@type":"Recipe",
        [...] 
   
        "@id": "https://domain.com/path/to/post/#recipe",
   
        [...]
       }
       </script>
       ```
   
 * Thank a lot
    -  This topic was modified 7 years, 1 month ago by [ranone](https://wordpress.org/support/users/ranone/).
    -  This topic was modified 7 years, 1 month ago by [ranone](https://wordpress.org/support/users/ranone/).
    -  This topic was modified 7 years, 1 month ago by [ranone](https://wordpress.org/support/users/ranone/).
    -  This topic was modified 7 years, 1 month ago by [ranone](https://wordpress.org/support/users/ranone/).

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

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/structure-data-identifier-id/#post-11462847)
 * Hi there,
 * You can use the wprm_recipe_metadata plugin hook to alter the output of the metadata:
   
   [https://help.bootstrapped.ventures/article/129-plugin-hooks-and-filters](https://help.bootstrapped.ventures/article/129-plugin-hooks-and-filters)
 * Basically something like this should work:
 *     ```
       function wprm_alter_metadata( $metadata ) {
           // Add something to the $metadata array here.
           return $metadata;
       }
       add_filter( 'wprm_recipe_metadata', 'wprm_alter_metadata' );
       ```
   
 *  Thread Starter [ranone](https://wordpress.org/support/users/ranone/)
 * (@ranone)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/structure-data-identifier-id/#post-11470767)
 * Thanks [@brechtvds](https://wordpress.org/support/users/brechtvds/)!
 * I’ve added the below code to connect other metadata to the same item..
 * `$metadata['@id'] = get_permalink() . '#Recipe';`
 * Bye 🙂

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

The topic ‘Structure data identifier (@id)’ is closed to new replies.

 * ![](https://ps.w.org/wp-recipe-maker/assets/icon-256x256.png?rev=2967063)
 * [WP Recipe Maker](https://wordpress.org/plugins/wp-recipe-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recipe-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recipe-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recipe-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recipe-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recipe-maker/reviews/)

## Tags

 * [identifier](https://wordpress.org/support/topic-tag/identifier/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [structure data](https://wordpress.org/support/topic-tag/structure-data/)

 * 2 replies
 * 2 participants
 * Last reply from: [ranone](https://wordpress.org/support/users/ranone/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/structure-data-identifier-id/#post-11470767)
 * Status: resolved