This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Bitcoin and Altcoin Wallets airdrops aggregation script | |
* | |
* The script will aggregate airdrop transactions older than 1 month into one. | |
* Use it if the Airdrop extension has created too many transactions and | |
* your site is now slowing down because of this. | |
* | |
* It will create one aggregate transaction for each combination of: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Sample code for interfacing with the PHP-API of the Bitcoin and Altcoin Wallets Exchange extension. | |
* | |
* For more information refer to: | |
* - `wp-content/plugins/wallets-exchange/docs/developer.md` | |
* - The PHPdocumentor link to the Exchange extension's PHP-API below: | |
* | |
* @author Alex Georgiou <info@dashed-slug.net> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Bitcoin and Altcoin Wallets balances migration script | |
* | |
* This script will transfer balances of users from version 5.x of the plugin to version 6.x. Transaction histories will NOT be migrated. | |
* Version 5.x of the plugin uses the custom SQL table wp_wallets_txs to store transactions. | |
* Version 6.x of the plugin uses Custom Post Types of type wallets_tx to store transactions. | |
* | |
* This script will read user deposit addresses from wp_wallets_adds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WordPress admin pointer example | |
* Plugin URI: http://alexgeorgiou.gr/wordpress-admin-pointers-for-dummies/ | |
* Description: Showcasing how to create an admin pointer. Points to the settings menu. | |
* Version: 1.0 | |
* Requires at least: 3.3 | |
* Author: Alexandros Georgiou <alexgeorgiou@gmail.com> | |
* Author URI: https://alexgeorgiou.gr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: XYZ TurtleCoin Adapter | |
Plugin URI: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/turtlecoin-adapter-extension/ | |
Description: Example of how to add a TurtleCoin-compatible full node wallet to the Bitcoin and Altcoin Wallets plugin for WordPress | |
Version: 0.1.0 | |
Author: Alexandros Georgiou <info@dashed-slug.net> | |
Author URI: https://www.dashed-slug.net/dashed-slug/team/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Renders a form whenever the <code>[my_form name="string" age="integer"]</code> shortcode is triggered. | |
*/ | |
function my_form( $atts, $content, $tag ) { | |
$defaults = array( | |
'name' => 'Anonymous', | |
'age' => 18, | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Example query to the Google Places API, showcasing how to first get a place id from a text description, | |
* and then how to get details about that place. | |
* | |
* @author Alexandros Georgiou <alex.georgiou@gmail.com> | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Cryptonote-based Coin Adapter for XYZ coin | |
Plugin URI: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/monero-coin-adapter-extension | |
Description: Example of how to add a CryptoNote-based wallet to the Monero Coin Adapter extension for Bitcoin and Altcoin Wallets. | |
Version: 0.1.1 | |
Author: Alex Georgiou <alexgeorgiou@gmail.com> | |
Author URI: http://alexgeorgiou.gr | |
*/ | |
function wallets_cryptonote_coins_filter( $coins ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Bitcoin and Altcoin Wallets: Fine-grained withdrawals blocking | |
* Description: Example of how to restrict certain users from withdrawing certain coins. | |
* Version: 1.0.0 | |
* Plugin URI: https://gist.github.com/alex-georgiou/f063dd0565e562eb47c037cdf2d17547 | |
* Author: Alexandros Georgiou <info@dashed-slug.net> | |
* Author URI: http://dashed-slug.net | |
* License: GPLv2 or later | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Disallow selling TOKEN for BTC in the Dashed-Slug Exchange extension to Bitcoin and Altcoin Wallets | |
* | |
* https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/exchange-extension/ | |
* | |
* @author alexg | |
*/ | |
function disallow_limit_ask_orders( $order_id = null, $args = array() ) { |
NewerOlder