<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; text formatting</title>
	<atom:link href="http://www.wpwife.com/category/text-formatting/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Redact Text in WordPress (The Easy Way)</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-redact-text-in-wordpress-the-easy-way</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-redact-text-in-wordpress-the-easy-way#comments</comments>
		<pubDate>Sat, 11 Mar 2023 19:40:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[formatting]]></category>
		<category><![CDATA[redact text]]></category>
		<category><![CDATA[show redacted text in wordpress]]></category>
		<category><![CDATA[text formatting]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=24862</guid>
		<description><![CDATA[
<p>Do you want to redact text on your WordPress website? Redaction can be a way to share information with your visitors without hurting anyone&#8217;s privacy. You can even use it as an unusual paywall or a game where you challenge visitors to fill in the&#8230;&#160;<strong><a href="https://www.wpbeginner.com/plugins/how-to-redact-text-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/plugins/how-to-redact-text-in-wordpress/">How to Redact Text in WordPress (The Easy Way)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to redact text on your WordPress website?</p>



<p>Redaction can be a way to share information with your visitors without hurting anyone’s privacy. You can even use it as an unusual paywall or a game where you challenge visitors to fill in the missing words. </p>



<p>In this article, we will show you how you can redact text in WordPress.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/how-to-redact-text-in-wordpress-og.png" alt="How to redact text in WordPress" class="wp-image-136840" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/how-to-redact-text-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/how-to-redact-text-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4><strong>Why Redact Text in WordPress</strong>?</h4>



<p>Redaction is where you edit text by blacking out sensitive parts of it. It is a way to share information and documents with the general public while keeping confidential and sensitive information private.</p>



<p>Redaction can help you share real world examples without breaking your <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-a-privacy-policy-in-wordpress/" title="How to Add a Privacy Policy in WordPress">privacy policy</a>. For example, if you’re showing visitors how to write a great CV then you might want to include a few examples of real CVs you’ve received. You can use redaction to block out each applicant’s name, address, and other personal information.</p>



<p>When you redact text, that content still exists in your WordPress dashboard. This means you can easily remove the redaction at any point.</p>



<p>Redaction can also be an eye-catching way to preview the kind of content visitors can expect when they sign up to your <a href="https://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-creating-a-wordpress-membership-site/" title="Ultimate Guide to Creating a WordPress Membership Site">WordPress membership site</a>. Visitors can then buy a membership to remove the redaction and enjoy the full, uncensored version.</p>



<p>That being said, let’s see how you can easily redact text on your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>.</p>



<h4><strong>How to Redact Text in WordPress</strong></h4>



<p>The easiest way to redact text in WordPress is by using <a href="https://wordpress.org/plugins/eyes-only-plus/"  rel="noreferrer noopener nofollow" title="The Eyes Only WordPress plugin">Eyes Only</a>. This plugin will replace any redacted text with a black block.</p>



<figure class="wp-block-image size-full"><img width="680" height="316" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/eyes-only-redacted.png" alt="An example of redacted text on a WordPress website" class="wp-image-136844" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/eyes-only-redacted.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/eyes-only-redacted-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If the visitor highlights the block, then they’ll simply see the word REDACTED in white letters.</p>



<p>You can see an example of how this might look in the following image.</p>



<figure class="wp-block-image size-full"><img width="680" height="249" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/redacted-text-highlighted.png" alt="An example of redacted text" class="wp-image-136943" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/redacted-text-highlighted.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/redacted-text-highlighted-300x110.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Another option is to automatically replace any word or phrase with an alternative chosen by you. For example, if you can’t use a client’s name on your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-make-a-small-business-website-step-by-step/" title="How to Make a Small Business Website – Step by Step ">small business website</a> then you might replace the information with a more vague word such as ‘client.’</p>



<p>First, you’ll need to install and activate the plugin. If you need help, then please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Upon activation, you can redact any text by <a href="https://www.wpbeginner.com/wp-tutorials/how-to-edit-html-in-wordpress-code-editor-beginners-guide/" title="How to Edit HTML in WordPress Code Editor (Beginner’s Guide)">editing the HTML in the WordPress code editor</a>. To get started, simply open the page or post.</p>



<p>Then, click on the dotted icon in the top right corner and click on ‘Code editor.’</p>



<figure class="wp-block-image size-full"><img width="680" height="282" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/wordpress-code-editor.png" alt="The WordPress code editor" class="wp-image-136846" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/wordpress-code-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/wordpress-code-editor-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, find the piece of text that you want to redact. At the start of the text, type in the following tag:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&#91;redact]  
</pre></div>


<p>At the end of the redacted text, type in:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&#91;/redact]  
</pre></div>


<p>In the following image, we’re redacting ‘the Recipient.’</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/redacting-recipient-sample.png" alt="The WordPress code editor" class="wp-image-136944" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/redacting-recipient-sample.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/redacting-recipient-sample-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To redact more text just follow the same process described above.</p>



<p>If you want to switch back to the default plain text <a href="https://www.wpbeginner.com/beginners-guide/how-to-use-the-new-wordpress-block-editor/" title="How to Use the WordPress Block Editor (Gutenberg Tutorial)">block editor</a> at any point, then simply click on ‘Exit code editor.’</p>



<figure class="wp-block-image size-full"><img width="680" height="329" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/exit-code-editor.png" alt="Exiting the WordPress code editor" class="wp-image-136848" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/exit-code-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/exit-code-editor-300x145.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After adding tags to all the text that you want to redact, you can go ahead and publish or update the page.</p>



<p>Just be aware that the text won’t appear redacted while you’re logged into your WordPress account. To check that the text is redacted, you’ll either need to log out of your account or visit the page in an incognito tab in your web browser.</p>



<p>Another option is to automatically replace specific words with alternative words. This is useful if there’s a word that you never want to show on your site, such as the name of a confidential supplier or customer.</p>



<p>By configuring the plugin to automatically redact a word, you can make sure that information never shows up on your website. This <a href="https://www.wpbeginner.com/plugins/how-to-create-automated-workflows-in-wordpress-with-uncanny-automator/" title="How to Create Automated Workflows in WordPress with Uncanny Automator">automated workflow </a>can also save you a lot of time and hard work. </p>



<p>Since it replaces each redacted word with an alternative word, this method can also make your pages easier to read and nicer to look at, particularly when compared to a page that has lots of blacked-out content.</p>



<p>To redact a word or phrase automatically, head over to <strong>Settings » Eyes Only</strong>. Then, go ahead and click on the ‘Add new’ button.</p>



<figure class="wp-block-image size-full"><img width="680" height="365" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/settings-add-new.png" alt="Creating a redaction rule in WordPress" class="wp-image-136849" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/settings-add-new.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/settings-add-new-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the new ‘Text’ field, simply type in the text that you want to redact automatically. Just be aware that the text replacement is case sensitive.</p>



<p>In the ‘Replacement’ field, type in the text that you want to show instead of the redacted text.</p>



<p>In the following image, we’re replacing ‘Jane Smith’ with ‘Our Client.’</p>



<figure class="wp-block-image size-full"><img width="680" height="288" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/automatic-redaction-example.png" alt="The Eyes Only redaction WordPress plugin" class="wp-image-136851" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/automatic-redaction-example.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/automatic-redaction-example-300x127.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can then go ahead and click on the ‘Add’ button.</p>



<p>If you want to automatically replace more words or phrases, then simply repeat the process described above.</p>



<p>As we already mentioned, the text replacement is case sensitive. If you want to redact a word no matter whether it’s capitalizated, you’ll need to create two separate text replacement rules.</p>



<p>One of these rules should replace the capitalized version, and another should replace the uncapitalized version, as you can see in the following image. </p>



<figure class="wp-block-image size-full"><img width="680" height="175" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/redacting-capitalizated-text-.png" alt="Case-sensitive text redaction" class="wp-image-136852" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/redacting-capitalizated-text-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/redacting-capitalizated-text--300x77.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with the redaction rules you’ve created, click on the Save Changes button at the bottom of the screen.</p>



<p>The plugin will now scan your site and automatically replace any matches that it finds.</p>



<p>At some point you may no longer want to hide a particular word or phrase. In this case, you can simply delete the redaction rule. This will automatically remove the masking and show the original words across your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blog</a>.</p>



<p>To delete a redaction rule, simply go to <strong>Settings » Eyes Only</strong>.</p>



<p>Then, just hover the mouse over the rule that you want to delete and click on the ‘Delete’ link when it appears.</p>



<figure class="wp-block-image size-full"><img width="680" height="197" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/removing-redact-text.png" alt="The automatic redaction settings" class="wp-image-136853" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/removing-redact-text.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/removing-redact-text-300x87.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You will need to confirm that you want to delete the rule.</p>



<p>If you still want to go ahead, then click on ‘Yes.’</p>



<figure class="wp-block-image size-full"><img width="680" height="240" src="https://www.wpbeginner.com/wp-content/uploads/2014/12/confirm-delete-redact.png" alt="How to delete a text redact rule" class="wp-image-136855" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/12/confirm-delete-redact.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/12/confirm-delete-redact-300x106.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Finally, it’s time to click the ‘Save Changes’ button at the bottom. Now if you visit any page or post that has the original word, you’ll see that the plugin is no longer redacting the text.</p>



<p>We hope this article helped you learn how to redact text in WordPress. You may also want to check out our <a href="https://www.wpbeginner.com/wordpress-security/" title="The Ultimate WordPress Security Guide – Step by Step">ultimate WordPress security guide</a> and the <a href="https://www.wpbeginner.com/showcase/7-best-live-chat-support-software-for-your-wordpress-site/" title="Best Live Chat Software for Small Business Compared">best live chat software</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/plugins/how-to-redact-text-in-wordpress/">How to Redact Text in WordPress (The Easy Way)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-redact-text-in-wordpress-the-easy-way/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
