No results found. Try again with different words?

Search must be at least 3 characters.

    How to Change the Labels in the Countdown Timer?

    Have you ever thought of changing the labels seen in Countdown Timer?

    Countdown Label Name

    You can do that using the filter we are about to introduce in this article.

    This code has to be added to the functions.php file of your theme.

    add_filter( 'cpro_countdown_timer_label',  'function_name', 10, 1 );
                function function_name( $timer_lable_name ){
                    $timer_lable_name = 'Years,Months,Weeks,Day,Hours,Minutes,Seconds';
                    return $timer_lable_name;
                }
    //This code can be added to display texts for the counters if only one i.e. singular
    add_filter( 'cpro_countdown_timer_label_singular',  'function_name_singular', 10, 1 );
                function function_name_singular( $timer_lable_name ){
                    $timer_lable_name = 'Year,Month,Week,Day,Hour,Minute,Second';
                    return $timer_lable_name;
                }

    Here is an example:

    add_filter( 'cpro_countdown_timer_label',  'function_name', 10, 1 );
                function function_name( $timer_lable_name ){
                    $timer_lable_name = 'Y,M,W,D,H,M,S';
                    return $timer_lable_name;
                }

    Output:

    Changed Label Countdown

    Was this article helpful?

    Did not find a solution? We are here to help you succeed.

    Related Docs

     

    Grab Our Biggest Discount Of All Time. Don’t Miss Out!

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    Grab this rare opportunity to save up to 50%

    WOAH, HOLD ON THERE!

    Don't Miss Our Biggest Discount

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    You are backed by 100% risk-free money-back guarantee.

    Compare Convert Pro with...

    29439
    29440
    Scroll to Top