| 开发者 | ajmaurya |
|---|---|
| 更新时间 | 2026年5月12日 14:33 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.7 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
Rs 100, Rs.100, or Rs. 100 written in your posts, pages, excerpts, and text widgets is rendered as ₹ 100 on the front end. No JavaScript, no bundled fonts, no external requests, no configuration.
Why a plugin for the rupee symbol?
The ₹ symbol was introduced by the Government of India in 2010 and added to Unicode the same year. Most systems render it natively today, but a lot of older WordPress content was written with "Rs" or "Rs." because the Unicode character wasn't widely supported at the time. This plugin upgrades that legacy text to the modern Indian Rupee symbol on the fly — without you having to find-and-replace anything in your database.
Features
<script>, <style>, <pre>, <code>, and <textarea> is left alone.the_content, the_excerpt, widget_text, widget_block_content./wp-content/plugins/ or install it via the Plugins → Add New screen.Install and activate WP RupeeFont. Any "Rs" or "Rs." already written in your posts, pages, excerpts, and text widgets will render as ₹ on the front end automatically. There are no shortcodes, no settings, and no database changes.
The Indian Rupee sign is U+20B9 in Unicode (named INDIAN RUPEE SIGN), introduced in Unicode 6.0 in October 2010. The character itself is ₹.
It hooks into the standard WordPress content filters and runs a server-side PHP regular expression that matches "Rs" or "Rs." at word boundaries and replaces them with the Unicode character ₹. The conversion happens before the page is sent to the browser, so visitors never see "Rs" flicker on screen.
No. Version 2.0 removed all bundled JavaScript, CSS, and font files. The plugin adds zero requests and zero bytes to your front-end page weight.
Yes. The plugin filters the_content, which is what both the block editor and the classic editor produce on the front end.
No. Text inside <script>, <style>, <pre>, <code>, and <textarea> is left untouched, so code samples and embedded scripts are not affected.
The plugin uses a word-boundary match, so "Rs" only converts when it stands alone as a word. Words that happen to contain the letters "Rs" are never changed.
Conversion is case-sensitive (only "Rs" or "Rs."). This is a deliberate choice to avoid false positives such as filenames, identifiers, and words that contain "rs" in lowercase.
No. E-commerce plugins render prices through their own templating, not through the_content, so this plugin does not change cart, checkout, product, or order prices. Most e-commerce plugins already support Indian Rupee as a built-in currency option — that is the right place to configure store pricing. WP RupeeFont is for ordinary post and page text.
On the_content (post body), the_excerpt (excerpts), widget_text (legacy text widgets), and widget_block_content (block widgets).
Call remove_filter( 'the_content', 'wp_rupeefont_convert' ); (or any of the other filter names) from your theme's functions.php or another plugin.
<script>, <style>, <pre>, <code>, and <textarea>.the_excerpt, widget_text, and widget_block_content.