Title: Dev Code Branch for Adding Button to Posts
Last modified: December 3, 2019

---

# Dev Code Branch for Adding Button to Posts

 *  Resolved [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/dev-code-branch-for-adding-button-to-posts/)
 * Hi Team Ko-fi,
 * I had the same idea as [@randgrid](https://wordpress.org/support/users/randgrid/).
   So, I’d like to pitch my code changes to you.
 * I created a dev branch in **GitHub** of your awesome plugin.
 * [https://github.com/marklchaves/cuyohoga/tree/master/ko-fi-button](https://github.com/marklchaves/cuyohoga/tree/master/ko-fi-button)
 * Here’s a summary of what I’d like to merge into your main branch.
 * **Summary of Changes**
 * 1. Added an “Add to Posts” feature on the admin settings page.
    2. Updated `Ko_fi.
   php` and `Default_ko_fi_options.php` to support the new “Add to Post” feature.
   3. Added WordPress _filter_ in Ko_fi.php to append a _pretty_ linkbox for the
   Ko-fi button that contains the title, description, and Ko-fi code from the settings
   page. 4. Fixed some typos and changed `http` to `https` throughout.
 * **Screen Grabs**
 * > [Ko-fi WordPress Plugin Add to Posts Feature](https://imgur.com/a/c0kqHqQ)
 * Note: All dev was done using Local by Flywheel on PHP 7.3.2 and WordPress 5.3.
   I’d be happy to test/tweak to certify your plugin for 5.3. And, update your README
   of course.
 * Thanks for your time 🙂
    -  This topic was modified 6 years, 6 months ago by [mark l chaves](https://wordpress.org/support/users/mlchaves/).
      Reason: Clarification of request

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

 *  Thread Starter [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/dev-code-branch-for-adding-button-to-posts/#post-12249956)
 * Great news!. The source code for the Ko-fi Button plugin is now available on 
   GitHub.
 * **Main GitHub Repo**
 * [https://github.com/Ko-fi/kofi-wordpress-button](https://github.com/Ko-fi/kofi-wordpress-button)
 * I forked a version. I’ve already submitted a PR (pull request) to apply code 
   that makes the plugin compatible with PHP 7.3. It’s currently under review.
 * **PR**
 * [https://github.com/Ko-fi/kofi-wordpress-button/pull/3](https://github.com/Ko-fi/kofi-wordpress-button/pull/3)
 * I have another PR waiting in the wings that will add code to display a “pretty”
   content box with the Ko-fi button at the end of very blog post. I’ll be testing
   that more tomorrow. After testing, I’ll submit a PR for it. Woo hoo!
 * **Add to Posts GitHub Branch**
 * [https://github.com/marklchaves/kofi-wordpress-button-fork/tree/add-to-posts](https://github.com/marklchaves/kofi-wordpress-button-fork/tree/add-to-posts)
 * Stay tuned on GitHub.
 *  Thread Starter [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/dev-code-branch-for-adding-button-to-posts/#post-12249961)
 * Closing thread.

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

The topic ‘Dev Code Branch for Adding Button to Posts’ is closed to new replies.

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

## Tags

 * [enhancment](https://wordpress.org/support/topic-tag/enhancment/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 2 replies
 * 1 participant
 * Last reply from: [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/dev-code-branch-for-adding-button-to-posts/#post-12249961)
 * Status: resolved