Show start date instead of remaining time in course button

Please add the following code in your wplms-customizer.php  file in wplms customizer plugin :

To replace the remaining time to start the course with the start date in course detail please add the given code and disregard the above :

refer : http://prntscr.com/akz32h

Was this article helpful?

11 Comments

  1. Henry

    I want the sidebar module on the course page to show the course start date instead of “remaining time until”. How?
    Also I would like to be able to show more than one course dates, would that be possible.

    Please help! Thanks in advance.

  2. Pro4Pets

    This code is really nice but it only works if we have the default date format selected on WordPress settings (February 11, 2016)
    The problem is that we live in Europe, and we don’t use this format.
    What do I need to change on the code to display it in the selected format d/m/Y (11/02/2016)?

    1. The date format is picked up from WordPress. You can set the date format in WP Admin – Settings section.

      1. Pro4Pets

        Good morning Mr. Vibe. I think you did not understand my question…
        I do know how to set the date format on the settings of WP admin, the problem is that it does not work.
        This is the scenario:
        – If the data format is left on the first option in WP admin (February 12, 2016), everything works well.
        – If the data format is left on the fourth option in WP admin (12/02/2016), the blue button that says “START THIS COURSE” will not display the message “COURSE STARTS ON 12/02/2016”, the code simply does not add anything to the button
        There must be something on that string of code [.date_i18n( get_option( ‘date_format’ ), strtotime( $start_date )).] that is not recognized unless the date format is the default.

        I made a print screen showing both scenarios, but I don’t see any option here to attach files, so I can send it to you by e-mail or any other means if you need

      2. Pro4Pets

        BTW, same things happens if you do not add this code to wplms-customizer.php
        – If the data format is left on the first option in WP admin (February 12, 2016), everything works well.
        – If the data format is left on the fourth option in WP admin (12/02/2016), the blue button that says “START THIS COURSE” will not display the message “COURSE STARTS IN 4 months”

  3. shakare

    where is located COURSE STARTS ON ? so i can translate it to spanish. Thanks Mr.Vibes

Leave A Comment?