Last active
August 29, 2015 14:06
-
-
Save davidmottershead/5acfbf5ba0040a580576 to your computer and use it in GitHub Desktop.
Shortcode function to display last updated date for currency rates in Currencyr WordPress plugin http://www.davidmottershead.com/articles/live-currency-exchange-rates-wordpress/
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
function currency_shortcode () | |
{ | |
global $currencyr; | |
return $currencyr->updated; | |
} | |
add_shortcode ('currencydate','currency_shortcode'); | |
//Usage - exchange rates below were last updated on [currencydate] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment