You need to add an additional filter on the frontend. Very basically it would look like this:
Frontend (eg. single.php):
echo apply_filters( 'my_custom_persian_filter', $post_date );
Backend (eg. functions.php)
function persian_date_function( $date ) {
$date = $converted_to_persian; // there you convert date to persian
return $date;
}
add_filter( 'my_custom_persian_filter', 'persian_date_function' );
Related Posts:
- How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]
- Add new post with predefined / preset date
- How can I change the language of automated Mails?
- Translate custom order status through a filter?
- How can I tranlslate post date in italian?
- Filter on the day of the week from timestamp
- How to get to the date of the uploaded file
- How to filter posts in admin by before date or by post status ‘future’?
- Date filter for post query not filtering results when variable outside the function
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- Changing JPEG compression depending on image size
- How to add headers to outgoing email?
- LESS CSS enqueue_style with add_filter to change rel attribute
- Remove Editor From Homepage
- Remove description from on Home
- What do add_filters() and apply_filter() do?
- How can I detect if a user changes their password?
- What to use instead of the content_save_pre filter?
- Moving sharedaddy buttons (in Jetpack) to the top of a post?
- How can I customize the wp_list_categories
- Add class to woocommerce checkout body based on filter [closed]
- changing variable through filters or action hooks
- filter the_title problem in nav
- Add classname to the_category() function?
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- How to replace any occurence of Gravatars with a local placeholder image?
- Sensei LMS Hooks to Remove Content
- How to re-enable a filter after disabling with __return_false
- Ignore dots when searching in the media library?
- Exclude One Category and its Subcategories using WP_LIST_FILTER
- What’s the best way to split admin-only functionality in the theme’s functions.php file?
- Gutenberg disable the “block” tab in right sidebar
- Where is this inline CSS code [closed]
- When to use actions and when to use filters
- add_filter to ‘woocommerce_before_main_content’ [closed]
- Which built-in WordPress files are safe to edit?
- Why won’t my preg_replace work with content_save_pre?
- Echoing Categories only if they’re a child of a given category
- How Does comment_author Filter Work?
- Add ‘data-text’ attribute to TagCloud HTML
- Why in archive page doesn´t show read more button with excerpt?
- Removal of Jetpack OG Tags from old blog site
- Walker_Nav_Menu doesn’t work in wp_page_menu_args filter
- get_posts() and filters
- Don’t see add_filter result in the site front page
- How can I include an existing custom sitemaps listing in wp-sitemap.xml?
- Display Externally Retrieved Data within a Custom Template
- Can the wordpress color palettes by changed through Javascript?
- Filter on the_content doesn’t update the content being searched via register_rest_route
- Where to add_filter in theme functions.php?
- upload_files cap to not loggen in users – add_cap to not logged in users
- Cannot change the definition of AUTOMATIC_UPDATER_DISABLED
- How do I add a checkmark to my-sites save settings hook
- tag removed not using a filter
- Add Lightbox To WordPress Native Gallery
- WordPress Image update filter
- How to remove this filter?
- get_post() containing gallery is outputting an unmatched closing div at the end of the content
- Trouble using remove_filter to override function in parent theme
- Load Posts’ individual body content on index starting at char 200 of each post
- How do I hook my function to run only after submitting login form
- Prepending character(s) to a custom tag title?
- How to replace username with email address in users table
- Modify existing plugin function with add_filter
- include specific Pages to wp_list_pages with filter
- why require – does not load filter
- How can I filter tag_description()?
- Email Obfuscation: Is antispambot() Acceptable? [closed]
- What are the steps + prerequisites for using an add_filter?
- an action hook when a post reaches a certain number of views
- WordPress overwrites UNC
- Need to return shortcode text instead of the output
- Excluding posts by meta, and also keeping posts without the meta
- Change tags url to search different site
- How to optionally append components to the output of a gutenberg block?
- Dashboard filter based on custom fields URL response code
- How to add custom media library mime icons?
- Custom SQL query slows down when using multiple OR … LIKE … in posts_where filter
- get_post() with filters applied
- I want to add string array to this function to filter displayed option in drpodown [closed]
- Drop down filter sort posts by latest, last 7 days and monthly
- Function not returning correct value for found_posts filter
- how to output HTML tags in post_content and not as plain text
- oembed_dataparse filter not running at all for standard YouTube embed
- Security question – Display a General Custom Login Error Message
- Add filter conditionally to a page
- How to apply a filter to everything?
- WP Job Manager – display search results from custom search form in taxonomy-job_listing_category page
- Conditionally (cpt) filter previous and next_post_link
- changing size image within the content
- Remove action added from class
- Adding an orderby filter, casting postmeta with multiple keys
- Identify admin/logout and more filters
- Sanitizing a custom query’s clauses
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- How to create a list of terms who’s posts also have a predefined external term?
- Better way to change the default password reset url with the woocommerce one?
- woocommerce_coupon_is_valid_for_product not working to exclude specific product tag
- Change password reqts with NO plugin without breaking resetpass link?
- How can I conditionally add the filter option_home?