Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://www.gravityhelp.com/forums/topic/user-notification-with-future-date
- if ( !function_exists('date_shortcode') ) {
- function date_shortcode( $atts ) {
- extract( shortcode_atts( array(
- 'format' => 'l jS \of F Y',
- 'timestamp' => 'now'
- ), $atts ) );
- return date( $format, strtotime( $timestamp ) );
- }
- add_shortcode( 'date', 'date_shortcode' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement