Title: Filter for buttons
Last modified: August 24, 2016

---

# Filter for buttons

 *  [jstuartj](https://wordpress.org/support/users/jstuartj/)
 * (@jstuartj)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/filter-for-buttons/)
 * It would be nice if you could add a filter for the button links, so we can add
   attributes, custom classes, ID etc…, useful for implementing click tracking or
   adding date attributes for passing data to javascript.
 * I didn’t test it but something like the following should work.
 * `$values[] = apply_filter('genesis_author_pro_button_link', sprintf( '<a href
   ="%s" class="button button-book" target="_blank">%s</a>', $uri, $text ), $post_id,
   $uri, $text);`

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Nick the Geek](https://wordpress.org/support/users/nick_thegeek/)
 * (@nick_thegeek)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/filter-for-buttons/#post-6033531)
 * Thanks for suggesting. If you would like to do a pull request we can review the
   code quality and merge over at Github.
    [http://github.com/copyblogger/Genesis-Author-Pro/](http://github.com/copyblogger/Genesis-Author-Pro/)

Viewing 1 replies (of 1 total)

 The topic ‘Filter for buttons’ is closed to new replies.

 * ![](https://ps.w.org/genesis-author-pro/assets/icon.svg?rev=3409888)
 * [Osom Author Pro](https://wordpress.org/plugins/genesis-author-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-author-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-author-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-author-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-author-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-author-pro/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick the Geek](https://wordpress.org/support/users/nick_thegeek/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/filter-for-buttons/#post-6033531)
 * Status: not a support question