Created
November 17, 2016 16:45
-
-
Save vovafeldman/04909967a415f74f7ae8fc4af9c85254 to your computer and use it in GitHub Desktop.
Dump EDD license key.
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 | |
function fs_dump_edd_key() { | |
if (is_admin()) { | |
$license_key = trim( get_option( 'my_edd_license_key' ) ); | |
?> | |
<div class="notice notice-error is-dismissible"> | |
<p>license key <?php echo $license_key ?></p> | |
</div> | |
<?php | |
} | |
} | |
add_action( 'admin_notices', 'fs_dump_edd_key' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment