Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Real-time Bitcoin Converter

Display Fiat currency values in Bitcoin or visa-versa using real-time exchange rates. Requires PHP 7.0+.

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.

Author Andrew Ryan
Profile
Contributors modernwebservices
Tags bitcoin
  1. Upload the plugin files to the /wp-content/plugins/bitcoin-convert 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
  4. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)

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.

For Developers

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

Place the following in your theme functions.php file, or plugin file.

<?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;
}
?>
Share  
Download
Version 1.0.0

Requires WordPress version: 4.6 or higher

Compatible up to: 4.7.2

Last Updated 02 Jan 2017

Date Added: 02 Jan 2017

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
62 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0