Title: Any Filter/hook ?
Last modified: September 1, 2016

---

# Any Filter/hook ?

 *  Resolved [YuMyo](https://wordpress.org/support/users/nikho/)
 * (@nikho)
 * [10 years ago](https://wordpress.org/support/topic/any-filterhook/)
 * Hi,
 * is there ay filter/hook to change the value of a schema field?
 * For example, say we’re not using the WP User as Post Author but a custom field
   instead. It would be useful being able to change the author value without messing
   with plugin’s core files.
 * [https://wordpress.org/plugins/schema/](https://wordpress.org/plugins/schema/)

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

 *  Plugin Author [Hesham Zebida](https://wordpress.org/support/users/hishaman/)
 * (@hishaman)
 * [10 years ago](https://wordpress.org/support/topic/any-filterhook/#post-7510426)
 * Indeed, you can override post author name with something like in your Theme’s
   functions.php file:
 *     ```
       function change_author_name_12345( $json ) {
   
       	$json['author']['author_name'] = 'New Author Name';
       	return $json;
   
       }
       add_filter('schema_json', 'change_author_name_12345');
       ```
   
 * I hope this helps.
 * P.S. Please, rate the plugin if you find it useful.
 *  Plugin Author [Hesham Zebida](https://wordpress.org/support/users/hishaman/)
 * (@hishaman)
 * [10 years ago](https://wordpress.org/support/topic/any-filterhook/#post-7510569)
 * I will mark this as solved since I didn’t hear back from you!
 *  Thread Starter [YuMyo](https://wordpress.org/support/users/nikho/)
 * (@nikho)
 * [10 years ago](https://wordpress.org/support/topic/any-filterhook/#post-7510570)
 * Yes, thank you very much [@hesham](https://wordpress.org/support/users/hesham/)
   Zebida
 *  Plugin Author [Hesham Zebida](https://wordpress.org/support/users/hishaman/)
 * (@hishaman)
 * [10 years ago](https://wordpress.org/support/topic/any-filterhook/#post-7510573)
 * You are welcome.
 * I appreciate if you rate the plugin 😉
 *  Thread Starter [YuMyo](https://wordpress.org/support/users/nikho/)
 * (@nikho)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/any-filterhook/#post-8674261)
 * Done!
 * However, the above filter seems to run in individual posts but not for categories.
   Is that right?
 *  Thread Starter [YuMyo](https://wordpress.org/support/users/nikho/)
 * (@nikho)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/any-filterhook/#post-8677999)
 * Correction: the filter seems to run in individual posts and categories but not
   archives or custom post type archives

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

The topic ‘Any Filter/hook ?’ is closed to new replies.

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

 * 6 replies
 * 2 participants
 * Last reply from: [YuMyo](https://wordpress.org/support/users/nikho/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/any-filterhook/#post-8677999)
 * Status: resolved