Title: Shortcode or PHP inclusion
Last modified: August 31, 2016

---

# Shortcode or PHP inclusion

 *  [HaloPinay](https://wordpress.org/support/users/halopinay/)
 * (@halopinay)
 * [10 years ago](https://wordpress.org/support/topic/shortcode-or-php-inclusion/)
 * Is there any way to add the button to the theme itself with a shortcode or PHP?
 * [https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/](https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [CodeBard](https://wordpress.org/support/users/codebard/)
 * (@codebard)
 * [10 years ago](https://wordpress.org/support/topic/shortcode-or-php-inclusion/#post-7377218)
 * Currently no. But if you grab the button by filtering its function, and then 
   assigning its content to a variable, you can later echo that content (button)
   anywhere.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode or PHP inclusion’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/patron-button-and-widgets-by-codebard_f8f8f8.
   svg)
 * [CodeBard's Patron Button and Widgets for Patreon](https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/patron-button-and-widgets-by-codebard/)
 * [Active Topics](https://wordpress.org/support/plugin/patron-button-and-widgets-by-codebard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/patron-button-and-widgets-by-codebard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/patron-button-and-widgets-by-codebard/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [CodeBard](https://wordpress.org/support/users/codebard/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/shortcode-or-php-inclusion/#post-7377218)
 * Status: not resolved