Skip to content

Instantly share code, notes, and snippets.

View alex-georgiou's full-sized avatar
💭
I'm adding taproot assets to the LND adapter for Bitcoin & Altcoin Wallets.

Alexandros Georgiou alex-georgiou

💭
I'm adding taproot assets to the LND adapter for Bitcoin & Altcoin Wallets.
View GitHub Profile
<?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
@alex-georgiou
alex-georgiou / wallets-balances-migration-script.php
Created March 14, 2023 10:08
Bitcoin and Altcoin Wallets balances migration script
<?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.
@alex-georgiou
alex-georgiou / wallets-exchange-php-api-sample.php
Created February 22, 2024 11:40
Sample code for interfacing with the PHP-API and the WP-REST API of the Bitcoin and Altcoin Wallets Exchange extension.
<?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>
@alex-georgiou
alex-georgiou / wallets-airdrops-aggregation-script.php
Created April 3, 2024 11:06
Bitcoin and Altcoin Wallets airdrops aggregation script. The script will aggregate airdrop transactions older than 1 month into one.
<?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: