Support » Plugin: Expire Users » Shortcode

  • Resolved Hkroed

    (@sprithansi)


    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

    (@husobj)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode’ is closed to new replies.