Title: Shortcode
Last modified: April 25, 2020

---

# Shortcode

 *  Resolved [Hkroed](https://wordpress.org/support/users/sprithansi/)
 * (@sprithansi)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/shortcode-730/)
 * Hi!
    Anyone been able to create a shortcode for expire date to be used in front
   end?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/shortcode-730/#post-13015168)
 * You should be able to use the shortcode `[expire_users_current_user_expire_date]`.
 * It is possible to set the sate format, and text that shows depending on wether
   the user is expired or not:
 * `[expire_users_current_user_expire_date date_format="M d, Y" expires_format="
   Expires %s" expired_format="Expired %s" never_expire="Never Expire"]`
 * See PHP date formats here:
    [https://www.php.net/manual/en/function.date.php](https://www.php.net/manual/en/function.date.php)

Viewing 1 replies (of 1 total)

The topic ‘Shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/expire-users_669999.svg)
 * [Expire Users](https://wordpress.org/plugins/expire-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/expire-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/expire-users/)
 * [Active Topics](https://wordpress.org/support/plugin/expire-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/expire-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/expire-users/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ben Huson](https://wordpress.org/support/users/husobj/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/shortcode-730/#post-13015168)
 * Status: resolved