Hi Sanya, not sure if it’s already tried, but have you tried changing the WordPress site date settings first? You can find them on the settings > General.
Current date format in settings – d.m.Y
Solution
add_filter( ‘sensei_certificate_date_format’, ‘custom_change_certificate_date_format’);
function custom_change_certificate_date_format($date){
return ‘%d.%m.%Y’;
}
Closing as resolved due to latest answer.
Noting here that changing the Date Format in Settings > General also works.
Hi guys
I really don’t want to change the main Date Format setting across all my WordPress website.
@sanya1917 Can you lead me where I should put your solution function in the codes?
(I put into template’s functions.php and didn’t work)
-
This reply was modified 5 years, 7 months ago by
kasra1990.
@kasra1990 you did everything right. I wrote my code in a functions.php file.