WordPress filter hook · part of WordPress core
the_content
A WordPress core filter that 2701 plugins also fire themselves, running on 57.7M+ sites between them.
“This filter is documented in wp-includes/post-template.php. We follow core/content block to replace ]]> with ]>”
How to use the_content
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'the_content', function( $content ) {
// Change $content here.
return $content;
}, 10, 1 );Argument names come from Yoast SEO's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
2701 plugins that fire the_content
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes. Showing the 150 most used.
-
Elementor Agent Ready Website Builder10+ million installs
apply_filters( 'the_content', $post->post_content )modules/agents/components/readability/extractors/classic-extractor.php:40 -
Yoast SEO10+ million installs
apply_filters( 'the_content', $content )src/builders/indexable-link-builder.php:140 -
WooCommerce7+ million installs
apply_filters( 'the_content', str_replace( ']]>', ']]>', $product->get_description() ) )src/Blocks/BlockTypes/ProductDescription.php:49 -
UpdraftPlus: WP Backup & Migration Plugin4+ million installs
apply_filters( 'the_content', $post->post_content )central/modules/posts.php:1107 -
Jetpack3+ million installs
apply_filters( 'the_content', $post->post_content )extensions/blocks/map/map.php:239 -
Duplicate Page3+ million installs
apply_filters( 'the_content', $mkcontent )duplicatepage.php:402 -
All in One SEO2+ million installs
apply_filters( 'the_content', $content )app/Common/Api/PostsTerms.php:784 -
File Manager1+ million installs
apply_filters( 'the_content', $mkcontent )file_folder_manager.php:1563 -
Essential Addons for Elementor1+ million installs
apply_filters( 'the_content', $post_object->post_content )includes/Elements/Woo_Product_Description.php:230 -
All-In-One Security (AIOS)1+ million installs
apply_filters( 'the_content', $maintenance_msg )other-includes/wp-security-visitor-lockout-page.php:10 -
The Events Calendar600,000+ installs
apply_filters( 'the_content', $content )common/src/functions/template-tags/post.php:48 -
Easy Table of Contents600,000+ installs
apply_filters( 'the_content', strip_shortcodes( $this->post->post_content ) )includes/class-eztoc-post.php:307 -
Royal Addons for Elementor600,000+ installs
apply_filters( 'the_content', $page->post_content )classes/woocommerce/wpr-compare-popup-action.php:55 -
SureForms500,000+ installs
apply_filters( 'the_content', $post_content )inc/generate-form-markup.php:461 -
Extendify500,000+ installs
apply_filters( 'the_content', serialize_blocks([$block]) )app/QuickEdit/Controllers/SaveController.php:386 -
Gutenberg400,000+ installs
apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) )build/scripts/block-library/post-content.php:50 -
Kirki400,000+ installs
apply_filters( 'the_content', get_the_content(null, false, $post_id) )includes/HelperFunctions.php:1242 -
Page Builder: Pagelayer400,000+ installs
apply_filters( 'the_content', $content )main/template.php:438 -
YITH WooCommerce Wishlist400,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
WooCommerce Legacy REST API400,000+ installs
apply_filters( 'the_content', $product->get_description() )includes/legacy/api/v1/class-wc-api-products.php:325 -
HappyAddons for Elementor400,000+ installs
apply_filters( 'the_content', get_the_content() )widgets/post-content/widget.php:319 -
SiteSEO400,000+ installs
apply_filters( 'the_content', $content )main/metaboxes/analysis.php:318 -
Page Builder by SiteOrigin400,000+ installs
apply_filters( 'the_content', $post->post_content )inc/widgets/post-content.php:64 -
Shortcodes Ultimate400,000+ installs
apply_filters( 'the_content', $data )includes/shortcodes/post.php:107 -
Templately300,000+ installs
apply_filters( 'the_content', get_the_content() )modules/theme-builder/Widgets/Post_Content.php:134 -
AMP300,000+ installs
apply_filters( 'the_content', $content )includes/templates/class-amp-content.php:133 -
Formidable Forms300,000+ installs
apply_filters( 'the_content', $content )classes/controllers/FrmFormsController.php:3358 -
Members300,000+ installs
apply_filters( 'the_content', $notification['content'] )admin/class-notifications.php:543 -
Admin Menu Editor300,000+ installs
apply_filters( 'the_content', $replacementContent )modules/content-permissions/content-permissions.php:522 -
Otter Blocks300,000+ installs
apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) )inc/plugins/class-dynamic-content.php:876 -
Complianz300,000+ installs
apply_filters( 'the_content', $tc_post->post_content )download.php:53 -
Ultimate Member200,000+ installs
apply_filters( 'the_content', $content, $um_content_query->ID )templates/gdpr-register.php:30 -
CMP200,000+ installs
apply_filters( 'the_content', get_post_field('post_content', $id) )niteo-cmp.php:2913 -
Microsoft Clarity200,000+ installs
apply_filters( 'the_content', $post->post_content )includes/brandagent-content-webhooks.php:96 -
Jetpack Boost200,000+ installs
apply_filters( 'the_content', $post->post_content )jetpack_vendor/automattic/jetpack-sync/src/modules/class-posts.php:781 -
Relevanssi100,000+ installs
apply_filters( 'the_content', $content )lib/excerpts-highlights.php:140 -
The Plus Addons for Elementor100,000+ installs
apply_filters( 'the_content', $post->post_content )modules/extensions/dynamic-tag/tags/text/post-content.php:121 -
VK All in One Expansion Unit100,000+ installs
apply_filters( 'the_content', $page->post_content )inc/other-widget/widget-page.php:254 -
bbPress100,000+ installs
apply_filters( 'the_content', $content )includes/core/theme-compat.php:524 -
GiveWP100,000+ installs
apply_filters( 'the_content', $goal_achieved_message )includes/forms/template.php:114 -
Stackable100,000+ installs
apply_filters( 'the_content', $post_content )src/block/posts/index.php:423 -
Smart Custom 404 Error Page100,000+ installs
apply_filters( 'the_content', get_post_field( 'post_content', $this->get_page_id() ) )inc/class-404page.php:627 -
YITH WooCommerce Compare100,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
Schema & Structured Data for WP & AMP100,000+ installs
apply_filters( 'the_content', $post->post_content )output/function.php:3055 -
FooGallery Photo Gallery : Image, Video & Masonry Galleries100,000+ installs
apply_filters( 'the_content', $gallery->_post->post_content )extensions/albums/functions.php:283 -
Internal Link Juicer: SEO Auto Linker for WordPress100,000+ installs
apply_filters( 'the_content', $content )core/indexstrategy/indexstrategy.php:410 -
Beaver Builder Page Builder100,000+ installs
apply_filters( 'the_content', $query_post->post_content )classes/class-fl-builder.php:2015 -
WP All Import100,000+ installs
apply_filters( 'the_content', wp_all_import_filter_html_kses($content) )views/admin/import/preview.php:31 -
Real Cookie Banner: GDPR & ePrivacy Cookie Consent100,000+ installs
apply_filters( 'the_content', $content->post_content )inc/view/checklist/PrivacyPolicyMentionUsage.php:64 -
Orbit Fox: Duplicate Page, Menu Icons, SVG Support, Cookie Notice, Custom Fonts & More100,000+ installs
apply_filters( 'the_content', $content )obfx_modules/beaver-widgets/modules/post-grid/includes/frontend.php:254 -
Jetpack Protect100,000+ installs
apply_filters( 'the_content', $post->post_content )jetpack_vendor/automattic/jetpack-sync/src/modules/class-posts.php:781 -
ProfilePress100,000+ installs
apply_filters( 'the_content', $lesson->post->post_content )src/LMS/Frontend.php:261 -
Access Governance for WordPress (aka AAM)100,000+ installs
apply_filters( 'the_content', $content )application/Service/Content.php:636 -
YARPP100,000+ installs
apply_filters( 'the_content', $post->post_content )classes/YARPP_Cache.php:405 -
The Post Grid100,000+ installs
apply_filters( 'the_content', null === $content ? $post->post_content : $content )app/Helpers/Fns.php:2442 -
MalCare WordPress Security Plugin100,000+ installs
apply_filters( 'the_content', $post->post_content )form_testing/handlers/jetpack_form.php:115 -
Event Tickets and Registration90,000+ installs
apply_filters( 'the_content', $content )common/src/functions/template-tags/post.php:48 -
BuddyPress90,000+ installs
apply_filters( 'the_content', $invite->content )bp-groups/classes/class-bp-rest-group-invites-endpoint.php:799 -
AI Engine90,000+ installs
apply_filters( 'the_content', $text )classes/core.php:524 -
Booking for Appointments and Events Calendar90,000+ installs
apply_filters( 'the_content', $eventData['description'] )view/frontend/wpa-events-single/wpa-events/partials/description-block.php:22 -
Tutor LMS90,000+ installs
apply_filters( 'the_content', $string )templates/single/course/course-content.php:34 -
LuckyWP Table of Contents90,000+ installs
apply_filters( 'the_content', $post->post_content )plugin/Shortcode.php:133 -
YITH WooCommerce Quick View80,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
ShopLentor80,000+ installs
apply_filters( 'the_content', $content )includes/manage_wc_template.php:234 -
Advanced Excerpt80,000+ installs
apply_filters( 'the_content', $text )class/advanced-excerpt.php:299 -
Download Monitor80,000+ installs
apply_filters( 'the_content', get_post_field( 'post_content', $no_access_page ) )src/class-dlm-modal.php:154 -
BlogVault Backup & Staging80,000+ installs
apply_filters( 'the_content', $post->post_content )form_testing/handlers/jetpack_form.php:115 -
PowerPack Addons for Elementor: Widgets, Form Styler and Templates70,000+ installs
apply_filters( 'the_content', get_the_content() )modules/posts/skins/skin-base.php:4713 -
Display Posts70,000+ installs
apply_filters( 'the_content', get_the_content() )display-posts-shortcode.php:568 -
Greenshift70,000+ installs
apply_filters( 'the_content', $post->post_content )includes/helper.php:1338 -
AMP for WP70,000+ installs
apply_filters( 'the_content', $attachment->post_excerpt )templates/instant-articles/instant-article.php:57 -
Germanized for WooCommerce70,000+ installs
apply_filters( 'the_content', $plain_content )includes/class-wc-gzd-emails.php:316 -
List category posts70,000+ installs
apply_filters( 'the_content', $lcp_content )include/lcp-catlist.php:468 -
Jupiter X Core70,000+ installs
apply_filters( 'the_content', get_the_content() )includes/extensions/raven/includes/modules/post-content/widgets/post-content.php:180 -
YITH WooCommerce Ajax Product Filter70,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
Custom Product Tabs for WooCommerce70,000+ installs
apply_filters( 'the_content', $tab['content'] )public/class.yikes-woo-tabs-display.php:114 -
TermsFeed AutoTerms: Privacy Policy Generator, Cookie Consent, GDPR, CCPA, Terms & Conditions, Disclaimers, Cookies Policy, EULA70,000+ installs
apply_filters( 'the_content', $post->post_content )includes/shortcode/post-content.php:40 -
Dynific Addons for Elementor (formerly Anywhere Elementor)70,000+ installs
apply_filters( 'the_content', $content )includes/modules/post-content/widgets/ae-post-content.php:551 -
Media Library Assistant70,000+ installs
apply_filters( 'the_content', "[embed]" . $item_values['custom:spotify_playlist'] . "[/embed]" )examples/plugins/mla-audio-shortcode-example.php:143 -
AI60,000+ installs
apply_filters( 'the_content', $post->post_content )includes/Abilities/Content/Content.php:1717 -
Brizy60,000+ installs
apply_filters( 'the_content', $text )content/providers/free-provider.php:342 -
LearnPress60,000+ installs
apply_filters( 'the_content', $content_post )inc/abstracts/abstract-post-data.php:147 -
Advanced Woo Search60,000+ installs
apply_filters( 'the_content', $content, $data['id'] )includes/class-aws-table-data.php:95 -
YITH WooCommerce Catalog Mode60,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
HT Mega Addons for Elementor60,000+ installs
apply_filters( 'the_content', get_the_content() )extensions/ht-builder/widgets/bl_post_content.php:137 -
Master Slider60,000+ installs
apply_filters( 'the_content', $excerpt )includes/msp-functions.php:855 -
Gallery by Visual Portfolio50,000+ installs
apply_filters( 'the_content', str_replace( ']]>', ']]>', $text ) )gutenberg/blocks/item-description/index.php:105 -
Email Subscribers & Newsletters by Icegram Express50,000+ installs
apply_filters( 'the_content', $template_body )lite/admin/class-es-admin.php:614 -
User Registration & Membership50,000+ installs
apply_filters( 'the_content', $target_post->post_content )includes/frontend/class-ur-frontend.php:388 -
WP Recipe Maker50,000+ installs
apply_filters( 'the_content', $parent_post->post_content )includes/public/class-wprm-print.php:943 -
Theme Editor50,000+ installs
apply_filters( 'the_content', $mkcontent )app/controller/controller.php:198 -
Website LLMs.txt50,000+ installs
apply_filters( 'the_content', $description )includes/class-llms-generator.php:931 -
Ultimate Dashboard50,000+ installs
apply_filters( 'the_content', $post->post_content )modules/admin-page/templates/admin-page.php:88 -
Uncanny Automator40,000+ installs
apply_filters( 'the_content', $content )src/integrations/wp-all-import/tokens/wpai-tokens.php:313 -
Bold Page Builder40,000+ installs
apply_filters( 'the_content', $content )bold-builder-fe.php:789 -
Kit (formerly ConvertKit)40,000+ installs
apply_filters( 'the_content', $post->post_content )includes/class-convertkit-broadcasts-exporter.php:243 -
WPtouch40,000+ installs
apply_filters( 'the_content', $post_content )core/class-wptouch-pro.php:547 -
WP Store Locator40,000+ installs
apply_filters( 'the_content', $post_content )includes/frontend/store/class-data.php:226 -
Themesflat Addons For Elementor40,000+ installs
apply_filters( 'the_content', get_the_content() )widgets/widget-post-content.php:108 -
Real Testimonials40,000+ installs
apply_filters( 'the_content', $post->post_content )src/Blocks/Includes/TestimonialQuery.php:242 -
PublishPress Taxonomies40,000+ installs
apply_filters( 'the_content', $post_content )modules/taxopress-ai/classes/TaxoPressAiUtilities.php:189 -
Modular DS: Monitor, update, and backup multiple websites40,000+ installs
apply_filters( 'the_content', (string)$post->post_content )src/app/BrokenLinks/Ndjson/Helpers/ContentRenderer.php:58 -
Xpro Addons40,000+ installs
apply_filters( 'the_content', get_post_field( 'post_content', $post->ID ) )widgets/post-content/layout/frontend.php:36 -
WP RSS Aggregator40,000+ installs
apply_filters( 'the_content', $this->content )core/src/IrPost.php:162 -
Perfect Brands for WooCommerce40,000+ installs
apply_filters( 'the_content', $queried_object->description )lib/class-woocommerce.php:926 -
Advanced iFrame40,000+ installs
apply_filters( 'the_content', $content )advanced-iframe.php:1389 -
Sina Extension for Elementor40,000+ installs
apply_filters( 'the_content', $content )admin/sina-ext-theme-builder.php:6 -
Content Control40,000+ installs
apply_filters( 'the_content', $content )inc/functions/content.php:98 -
Category Posts Block40,000+ installs
apply_filters( 'the_content', $text )class-widget.php:285 -
FunnelKit30,000+ installs
apply_filters( 'the_content', $content )modules/checkouts/includes/class-wfacp-common-helper.php:2594 -
BetterDocs30,000+ installs
apply_filters( 'the_content', $post->post_content )includes/Core/MarkdownRenderer.php:453 -
Snow Monkey Blocks30,000+ installs
apply_filters( 'the_content', $no_posts_text )dist/blocks/child-pages/view.php:103 -
Snow Monkey Forms30,000+ installs
apply_filters( 'the_content', $message )App/Model/Responser.php:60 -
Post Grid Blocks & Templates for News, Magazine, & Blog Sites30,000+ installs
apply_filters( 'the_content', $post_content )addons/builder/blocks/Post_Content.php:46 -
Insert Pages30,000+ installs
apply_filters( 'the_content', $content )insert-pages.php:712 -
PPWP30,000+ installs
apply_filters( 'the_content', $post->post_content )includes/class-ppw-api.php:809 -
Carousel Slider30,000+ installs
apply_filters( 'the_content', $this->get_post()->post_content )modules/PostCarousel/Item.php:111 -
YITH WooCommerce Ajax Search30,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
Customize WordPress Emails and Alerts30,000+ installs
apply_filters( 'the_content', $post_content )includes/engine/class-bnfw-engine.php:798 -
Ultimate FAQ Accordion Plugin30,000+ installs
apply_filters( 'the_content', $this->faq->post->post_content )views/View.FAQ.class.php:727 -
WP Telegram (Auto Post and Notifications)30,000+ installs
apply_filters( 'the_content', get_post_field( 'post_content', $this->post ) )modules/p2tg/PostData.php:197 -
WPGraphQL30,000+ installs
apply_filters( 'the_content', $content )src/Model/Post.php:557 -
Master Addons for Elementor30,000+ installs
apply_filters( 'the_content', $content )inc/modules/dynamic/tags/dynamic-tags/inc/post-content.php:54 -
Pixel Cat30,000+ installs
apply_filters( 'the_content', $content )includes/notices/notices.php:36 -
Visual Composer Website Builder30,000+ installs
apply_filters( 'the_content', $shortcodeString )visualcomposer/Modules/Elements/Traits/ShortcodesTrait.php:66 -
HireZoot30,000+ installs
apply_filters( 'the_content', get_the_content() )wp-job-openings.php:3030 -
Jetpack Social30,000+ installs
apply_filters( 'the_content', $post->post_content )jetpack_vendor/automattic/jetpack-sync/src/modules/class-posts.php:781 -
Logo Slider30,000+ installs
apply_filters( 'the_content', get_post_field( 'post_content', $post_id ) )templates/singles/gs-logo-single-style-one.php:44 -
Link Whisper Free30,000+ installs
apply_filters( 'the_content', $content )core/Wpil/Report.php:1847 -
Gutentor30,000+ installs
apply_filters( 'the_content', $post->post_content )includes/tools/class-gutentor-self-api-handler.php:2328 -
Booster for WooCommerce30,000+ installs
apply_filters( 'the_content', $content )includes/class-wcj-product-tabs.php:566 -
WP Events Manager30,000+ installs
apply_filters( 'the_content', $content )inc/Models/PostModel.php:456 -
The WP Remote WordPress Plugin30,000+ installs
apply_filters( 'the_content', $post->post_content )form_testing/handlers/jetpack_form.php:115 -
Essential Content Types20,000+ installs
apply_filters( 'the_content', $value )admin/class-testimonial.php:814 -
ThinkRank SEO20,000+ installs
apply_filters( 'the_content', (string) $post->post_content )includes/seo/class-content-access.php:825 -
WP Travel Engine20,000+ installs
apply_filters( 'the_content', wp_kses_post( $content_itinerary ) )dist/blocks/single-trip/itinerary/block.php:125 -
NextScripts: Social Networks Auto-Poster20,000+ installs
apply_filters( 'the_content', $dsc )inc-cl/li.php:223 -
PPOM20,000+ installs
apply_filters( 'the_content', $content )classes/form.class.php:391 -
BeyondSEO20,000+ installs
apply_filters( 'the_content', $content )inc/Core/AutoSetup/Onboarding/AutoSetupOnboarding.php:1901 -
Testimonial20,000+ installs
apply_filters( 'the_content', get_the_content() )lib/classes/TSSProSC.php:373 -
Post Grid20,000+ installs
apply_filters( 'the_content', $content )includes/functions.php:178 -
Smart Post20,000+ installs
apply_filters( 'the_content', get_the_content() )admin/ElementAddons/Smart_Post_Show_Template_Widget.php:149 -
Cool Timeline (Horizontal & Vertical Timeline)20,000+ installs
apply_filters( 'the_content', $excerpt )includes/shortcodes/class-ctl-helpers.php:188 -
RSS for Yandex Turbo20,000+ installs
apply_filters( 'the_content', yturbo_strip_shortcodes( get_post_field( 'post_content', get_the_ID() ) ) )rss-for-yandex-turbo.php:3103 -
YITH WooCommerce Product Add-Ons20,000+ installs
apply_filters( 'the_content', $content )plugin-fw/yit-functions.php:100 -
Gutenverse20,000+ installs
apply_filters( 'the_content', $content )includes/block/class-post-content.php:55 -
Seriously Simple Podcasting20,000+ installs
apply_filters( 'the_content', get_the_content() )php/classes/controllers/class-frontend-controller.php:2005 -
WP YouTube Lyte20,000+ installs
apply_filters( 'the_content', $text )wp-youtube-lyte.php:628 -
Image Hotspot by DevVN20,000+ installs
apply_filters( 'the_content', wpautop($point_content) )admin/inc/add_shortcode_devvn_ihotspot.php:104 -
HT Slider For Elementor20,000+ installs
apply_filters( 'the_content', $content )include/helpers_function.php:282
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.