WordPress.org

Ready to get started?Download WordPress

Forums

Demo Data Creator
[resolved] Random creation date (2 posts)

  1. derscheinwelt
    Member
    Posted 1 year ago #

    Good Work – does exactley what it should. You could add some more randomness into demodata_create_post and …_page with setting a random post_date

    $randdate = date('Y-m-d H:i:s', strtotime( mt_rand(-1095,10).' days' . mt_rand(0,1440). 'minutes' ));
    
    $page = array( …
    'post_date' => $randdate,
    …

    http://wordpress.org/extend/plugins/demo-data-creator/

  2. Chris Taylor
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, this is a good suggestion. I've added it to the code and committed version 1.1, along with a note of thanks to you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.