How to Modify Read Time Text on Blog and Single Post Page?
|
/ Documentation / How to Modify Read Time Text on Blog and Single Post Page?

How to Modify Read Time Text on Blog and Single Post Page?

In the Astra Pro v2.5.1, we have added two new filters to update the Read Time text – specific to Minute & Minutes of reading text for Blog & Single post page.

You can use the below filters to modify the Read Time strings –

For updating the Singular Read Time –

add_filter( 'astra_post_minute_of_reading_text', 'ast_post_minute_of_reading_text_function' );
function ast_post_minute_of_reading_text_function() {
    return __( 'Singular reading time...', 'astra-addon' );
}

For updating the Plural Read Time –

add_filter( 'astra_post_minutes_of_reading_text', 'ast_post_minutes_of_reading_text_function' );
function ast_post_minutes_of_reading_text_function() {
    return __( 'Plural reading time...', 'astra-addon' );
}

You can refer this doc on How to Add Custom PHP Code?

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

This field is required.

REWIND

YEAR IN REVIEW

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form