WordPress add_filter to post_date

Question

I using a plugin that it makes posts and etc date to Persian Date but the problem is I just want to convert date in front not admin panel or etc. I found that part make this action:

add_filter('date_i18n', 'ztjalali_ch_date_i18n', 111, 4);

It using add_filter to do this on date_i18n function, can I change it somehow that convert only date in blog post in front. I’m not a wordpress expert and don’t know too much about date_i18n, but I think it refer to all post date in everywhere, so can I change the code to only convert in front?

something like:

add_filter('post_date', 'ztjalali_ch_date_i18n', 111, 4);

I tried above but no success.

0
, , tour travel 3 years 2019-10-28T06:14:08-05:00 0 Answers 99 views 0

Leave an answer

Browse
Browse