WordPress.org

Ready to get started?Download WordPress

Forums

WP Quadratum
[resolved] How do you change the date format? (5 posts)

  1. RoarinRow
    Member
    Posted 1 year ago #

    Right now the widget has this:

    Last seen at Costco on 05 Oct 2012 2:05 UTC

    How can I change the date so that is Oct 05 2012 2:05 PDT (or PST)?

    http://wordpress.org/extend/plugins/wp-quadratum/

  2. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ... at the moment you can't easily do this but it's the perfect use case for a filter. I'll build this into the next release. Thanks for the idea!

    -Gary

  3. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    So I've just pushed v1.2.0 of WP Quadratum to the plugin repository. In this release you'll find a filter, wp_quadratum_strapline that passes the elements that make up the strapline, the text that is shown underneath the checkin map, including the time-stamp, to a user defined function so you can modify the contents of the strapline.

    For an example of how to do this, see the Filter Support And Usage section of the plugin's documentation here: http://wordpress.org/extend/plugins/wp-quadratum/other_notes/.

    -Gary

  4. RoarinRow
    Member
    Posted 1 year ago #

    Great, thank you for the update. I found the line of code on the wp-quadratum-frontend.php file.

  5. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    You shouldn't need to look in the plugin's source files. The filter, as documented in the plugin's readme should already be present and set up for you once the plugin is active. You just need to add the filter handler code to your theme's functions.php and there's a documented example in the readme.

    -Gary

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.