這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Real-time Bitcoin Converter

外掛說明

Provides ability for content author to insert a shortcode specifying an amount in either Bitcoin or a Fiat currency.

The plugin then converts this value in to the corresponding value using real-time exchange rates.

For example, I use this on my business site to display my hourly rates in my local currency, as well as in Bitcoin.

Includes a Tiny MCE plugin to assist content author in generating the shortcode.

Requires PHP 7.0+ due to scalar argument declarations.

For Developers

You can modify the html output generated by the plugin using a standard WordPress filter.

<?php  
add_filter('format_bitcoin_convert_output', 'my_custom_filter_function');
/**
 * Modify Bitcoin-Convert's HTML output
 * 
 * @param string[] $output
 * @var string $output['beforeSymbol']
 * @var string $output['afterSymbol']
 * @var string $output['beforeValue']
 * @var string $output['afterValue']
 * @var bool $output['prefixSymbol']
 * @var string $output['symbol']
 * @var float $output['value']
 * @return string[]
 */
function my_custom_filter_function(array $output){
    // Place your modification code here.
    return $output;
}
?>

螢幕擷圖

  • Tiny MCE short-code generator plugin
  • Example public page showing real-time fiat to bitcoin conversion

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Plugin Name screen to configure the plugin

常見問題集

Are values updated client-side?

At the moment no. All currency conversion is performed server-side. I’ll probably add a jQuery plugin and optional data attributes in a later
version to enable that functionality.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Real-time Bitcoin Converter〉的開發相關工作。

參與者

將〈Real-time Bitcoin Converter〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.7

  • Add composer dump and svn cp to publish script

1.0.6

  • Uncomment svn ci command

1.0.5

  • Clean up dead code
  • Fix plugin URI
  • Add packaging/publishing shell script

1.0.4

  • Refactored to use namespaced classes and composer autoloader

1.0.3

  • Fixed PHP warning: “Warning: count(): Parameter must be an array or an object that implements Countable”