-
-
Save wpmark/2b2d24676e400419887533624d45043e to your computer and use it in GitHub Desktop.
Example function return run through a WordPress filter.
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 | |
/** | |
* Gets the username of the logicmelon feed as set on the plugins | |
* settings page in the admin. | |
* | |
* @return string the username of the feed or empty string if not set. | |
*/ | |
function hdji_get_username() { | |
return apply_filters( 'hdji_get_username', get_option( 'hdji_username' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment