Last active
June 6, 2022 06:49
-
-
Save Bobz-zg/5e8fe19442d88ddb32bae428dfc199f3 to your computer and use it in GitHub Desktop.
Add Lightning address to WordPress head
This file contains hidden or 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: Lightning Address | |
* Plugin URI: https://gist.github.com/Bobz-zg/5e8fe19442d88ddb32bae428dfc199f3/edit | |
* Author: Vlado Bosnjak | |
* Author URI: https://github.com/code-soup | |
* Description: Handle the basics with this plugin. | |
* Version: 0.0.1 | |
* Requires at least: 5.2 | |
* Requires PHP: 7.0 | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
* Text Domain: lightning-address | |
*/ | |
add_action('wp_head', function () { | |
printf( | |
'<meta name="lightning" content="lnurlp:%s"/>', | |
'[email protected]' | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment