Ko-fi Button

Опис

Ko-fi is a fast and friendly way to earn money from your blog, website or project.

Створіть свою безкоштовну сторінку на ko-fi.com всього за кілька хвилин і зв’яжіть свій обліковий запис PayPal або Stripe, щоб почати отримувати пожертви.

Use the Plugin to add a Ko-fi button or donation panel as a block, or use a classic widget or shortcode for sites not using the block editor.

Now featuring donation button and donation panel blocks, with seamless migration from shortcodes and widgets to the new block implementation.

Not sure where to start? Take a look at our guide!

Скріншоти

Блоки

Цей плагін надає 2 блоки.

  • Ko-fi Donate Panel Display a donate panel.
  • Ko-fi Donate Button Display a donate button.

Встановлення

To install the plugin, please follow the following steps:

  1. Go to ‘Plugins’ and click Add New, search for Ko-fi and install the plugin or upload the plugin files to the /wp-content/plugins/Ko-fi-plugin directory.
  2. Активуйте плагін на сторінці “Плагіни” у WordPress.
  3. Use the Settings > Ko-fi Settings screen to link to your Ko-fi page and configure the default settings.
  4. Add a Ko-fi Button or Ko-fi Donation Panel block in any block based editor, or use the widgets and [kofi] shortcode if using a classic theme.
  5. Where necessary, individual blocks, widgets and shortcodes can override the default settings.

Часті питання

Що таке Ko-fi

Ko-fi — це служба пожертв, яка дозволяє творцям отримувати невеликі платежі (приблизно за ціною кави) від прихильників їхньої творчості. Використовуваний як альтернатива рекламі, Ko-fi допомагає всім типам художників, косплеєрів, блогерів, кодерів і подкастерів фінансувати свої пристрасті.

Чи бере Ko-fi плату

The payment processor will take a small fee for processing the transaction, but Ko-fi is free to use for accepting simple donations. For advanced features you’ll pay a creator-friendly 5% platform fee.

Як щодо щомісячного членства

Yes, use Ko-fi to receive monthly subscriptions or create your own membership tiers. Use membership tiers to offer different benefits and price points to suit your audience.

What does the WordPress Plugin do

The WordPress plugin allows WordPress users to easily add a customisable ‘Support me on Ko-fi’ button to their blog or website. Simply add the plugin, enter your page details and place the block, widget or shortcode anywhere on your site.

For more information see the help page at ko-fi.com.

Допоможіть! Код за замовчуванням у моєму віджеті змінився

З випуском 1.0.1 ваш код Ko-fi тепер надходить зі сторінки налаштувань під час використання короткого коду або віджета.

Якщо ви не встановили свій код Ko-fi на сторінці налаштувань, просто оновіть ім’я/ідентифікатор сторінки за замовчуванням на сторінці налаштувань, збережіть зміни, і віджет автоматично підбере їх.

I’m getting errors with the widget after upgrading to the block widget editor

In most instances there shouldn’t be any issues upgrading to the block widget editor, but if you do encounter errors try removing the widget, saving, and adding the widget again.

What options are available for the `[kofi]` shortcode?

The following options are available:

  • type: The type of Ko-fi widget to embed. Either button (default) or panel.
  • code: Your Ko-fi username
  • text: The button text (if using button type)
  • color: The button background color (if using button type)

You don’t need to provide any of the options unless required, the options will default to the settings from the plugin settings page if not specified.

How can I control which pages the Floating Button displays on?

By default, the floating button displays on every page when enabled. You can override it on individual posts and pages with the Display floating button on this page setting to hide on specific pages, or alternatively display only on specific pages when disabled globally.
For more advanced use cases, you can use the kofi_display_floating_button filter.

Подяка

  • Дякуємо @mlchaves за його допомогу у забезпеченні сумісності плагіна з php7.3.

Відгуки

24.10.2018
I used to have a PayPal donate button on my blog, but I switched it to using Ko-fi. The idea of buying me a coffee seems to resonate with my readers and it now really helps fund the blog.
Прочитати всі 1 відгук

Учасники та розробники

“Ko-fi Button” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:

Учасники

“Ko-fi Button” було перекладено на 6 локалізацій. Дякуємо перекладачам за їх роботу.

Перекладіть “Ko-fi Button” на вашу мову.

Цікавитесь розробкою?

Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.

Журнал змін

1.4.1

  • Fix PHP error if translations load too early
  • Fix PHP error in instances where the classic widgets had not been saved correctly

1.4.0

  • Introduced donation button and donation panel blocks
  • Tested with WordPress 7.0
  • Button classic widget now displays correct settings regardless of whether a description was provided. The default configuration would previously display if the description was not provided.

1.3.10

  • Tested with WordPress 6.9
  • Fix HTML title attribute not working for widgets
  • Automatically resize floating button based on button text

1.3.9

  • Tested with WordPress 6.8
  • Покращення якості коду
  • Fix panel widget alignment issue in some block themes
  • Add option to customize the HTML title attribute for donate buttons

1.3.8

  • Tested with WordPress 6.7
  • Meta updates

1.3.7

  • Fix deprecated function error on PHP 8+

1.3.6

  • Fix fatal error on outdated versions of PHP

1.3.5

  • Fix plugin translations not being loaded
  • Fix overzealous escaping being applied to HTML elements
  • Fix undefined index error sometimes occuring if a page has not been saved

1.3.4

  • Fix fatal error on outdated versions of PHP
  • Code quality improvements – now compliant with the WordPress PHP coding standards
  • Increase minimum PHP version to 5.6

1.3.3

  • XSS security fix
  • Fix missing closing tag on link-only buttons

1.3.2

  • Fix undefined array key warning
  • Replace deactivation hook with uninstall hook

1.3.1

  • Fix errors on sites running PHP 8

1.3.0

  • Intoduce new floating button options.

1.2.1

  • Fix potential fatal error

1.2.0

  • PHP 8 compatibility updates
  • Replace third party color picker script with native color picker from WordPress core
  • Improve reliability of default coffee code settings
  • Покращення якості коду

1.1.0

  • Виправлено помилку вирівнювання кнопок із темами, які підтримують вирівняні по всій ширині блоки
  • Виправлення конфлікту з Elementor
  • Зробіть поле віджета “Код за замовчуванням” лише для читання і завжди таким же значенням, як на сторінці налаштування.
  • Розширте можливості шорткоду, щоб включити зміну імені користувача та вставити панель пожертв
  • Дозволити змінювати ім’я користувача у віджеті
  • Додаткові перевірки безпеки
  • Покращення якості коду

1.0.3

  • Обробіть регістр з апострофом у тексті кнопки.
  • Видаліть подвійні лапки під час відтворення віджета javascript у браузері.
  • Перевірено на обробку тексту кнопок розширених символів.

1.0.2

  • Сумістіть назву поля «Код за замовчуванням» у віджеті з назвою поля «Назва сторінки або ідентифікатор» у налаштуваннях.
  • Суміште назву «Код за замовчуванням» у відображенні з назвою «Назва сторінки або ідентифікатор» у налаштуваннях.
  • Під час додавання нового віджета візьміть значення за замовчуванням з поточних налаштувань Ko-fi.
  • Упорядкуйте налаштування в більш логічній послідовності на сторінці налаштувань.

1.0.1

  • Minor updates to the wording used within the plugin and to the use of ‘Ko-fi’.
  • Додана можливість змінити вирівнювання кнопок всередині елемента.
  • Додайте версію плагіна у відповідність з readme.
  • Виправлено функцію гіперпосилання.
  • Зробіть поле віджета “Код за замовчуванням” лише для читання і завжди таким же значенням, як на сторінці налаштувань.

1.0.0

  • Перша версія