re.place is a module wich acts as a content filter. It searches for pre-defined
regular expressions and replaces matches with pre-defined replacements.
It is possible to specify different replacements based on several
“replacement restrictions” — for authenticated users and guests,
for pages and non-pages currently (see “Screenshots”).
For example, you can implement the functionality of cross-linker module, while
adding the possibility to insert “target” parameter, “rel=nofollow”, style
As another example, you can insert in your posts custom smiles or the like.
As another example, you can add custom markup to you blog, like
Google(something) would insert link to
TouTube(youtube_id) will insert
<object ...>, wich displays that video,
etc-etc. See “Other notes” for more examples.
You can replace http links with some other stuff for guests, leaving as is for
authenticated users (see https://wordpress.org/support/topic/297405).
Every entry can have custom “order” number, so you can chain your replacements.
re.place stores entries in database.
Management GUI provided to list entries, add, edit or delete entries.
See changelog for some changes tracking.
A brief examples
As a search field, use ‘
_—‘ (space in place of
as a replace — ‘
#160;—‘. This will insert non-breaking space
before every em-dash.
Mmm… You may wish even use ‘
<span‘ as a replase to insert
narrower non-breaking space… If you love typography too much… And you
can make space after dot wider…
Search for ‘
:-)‘ and replace with:
<img src="http://www.kolobok.us/smiles/standart/smile3.gif"' .‘
'alt=":-)" title=":-) (nice smile -- http://www.kolobok.us/smiles/standart/smile3.gif)"' .
'style="vertical-align: middle;" />
<object width="425" height="344" data="http://www.youtube.com/v/\1" type="application/x-shockwave-flash">‘
<param name="movie" value="http://www.youtube.com/v/\1"></param>
This will allow you to use markups like
Youtube video fragments easily.
How to Mass Remove Link (mass deactivate URL Linked text inside posts)?
This will “deactivate” all links in all posts
<a href="...">Try!</a>with just
Note, you can activate them back, deactivating this
Want to insert drop caps easily?.. Use ‘
<drop>L</drop>orem ipsum...‘ in your
posts and replace it with
<span class="dropcap">\1</span>‘. Use angle brackets,
and if you (accidentally) deactivate re.place, these “tags” won’t mess you page.
New — in v0.1.3 — [beta-] feature: you can specify different replace patterns
for authenticated users and “guests”. Sorry, i’ll update screenshots and doc
- Unzip replace-.zip to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Define your search/replacements via mgmt interface
- Use your patterns in your posts or pages
- How to deinstall this plugin?
Deactivate it and drop the database (the best way is via phpMyAdmin plugin).
And remove options
Sorry, no deinstaller yet.
We created a regular expression to perform the look-up. Other plug-ins would
a) replace the contents of the post in the database
-> this is not the desired behavior as “<span>”s sometimes get “eaten” by the visual editor
b) work for posts, but not for pages
c) work for posts, also for pages, but not inside shortcodes
-> our theme uses shortcodes for a variety of things, so we needed them.
d) completely break the site
re.place was the ONLY plug-in out of the 5 we tested that didn’t check any of the above and that ALWAYS worked exactly the way we wanted it to. I highly recommend it!