
The SEMrush SEO Writing Assistant plugin read only from post title and post content elements for the real time check.
This lightweight plugin allows you to use an arbitrary value for that check in addition to those values.
So, if you are using some kind of a page builders, field managers and so on, you have only to define a constant in your wp_config.php file and eventually to write a little bit of JavaScript code in order to specify which fields.
Note that the plugin don’t replace SEMrush SEO Writing Assistant but is intended to be used together.
Once the plugin is activated you can configure it by defining following constants in your wp-config.php:
Automatically enable use of additional text value for SEMrush check. The default value is false.
This is the only configuration you have to do in order to have the plugin feature working.
For example:
define( 'SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_AUTOENABLE', true );
Allows to change the interval between automatic updates of the text used by SEMrush checks.
The default value is 5 seconds.For example:
define( 'SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_INTERVAL', 10 );
You can alernatavely control the plugins programmatically, by using
semrush_seo_writing_assistant_post_types (optional) filter and SeoWritingAssistantSEMrushCustomFields JavaScript object (see below).
**swa_semrush_custom_fields_settings **
Filters plugin settings values.
apply_filters( 'swa_semrush_custom_fields_settings', array $settings )
semrush_seo_writing_assistant_post_types
Filters post types where to enable plugin. Default to array( 'post', 'page', 'product' ).
apply_filters( 'semrush_seo_writing_assistant_post_types', array $post_types )
The filter has the same name as the one used by SEMrush SEO Writing Assistant plugin (since version 1.0.4) used for the same purpose.
seo-writing-assistant-semrush
This event allows you to update the text for SEMrush analysis.
The following example will update text for SEMrush check every 5 seconds, using excerpt and my_custom_fields custom field values (working both with block and classic editors):
jQuery( document ).ready( function() { var swa = new SeoWritingAssistantSEMrushCustomFields( { interval: 5 } ); jQuery( document ).on( 'seo-writing-assistant-semrush', function( event, data ) { data.html += jQuery( '#excerpt' ).val() + "\n" + jQuery( '.editor-post-excerpt__textarea textarea').val() + "\n" + jQuery( '#my_custom_fields' ).val(); } ) } ); Note that if you have previously defined constant SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_AUTOENABLE to true,
you don’t have to create new SeoWritingAssistantSEMrushCustomFields object.
setHtml()
The following example will update programmatically the text used by SEMrush check with an arbitrary value:
jQuery( document ).ready( function() { var swa = new SeoWritingAssistantSEMrushCustomFields( { interval: 0 } ); swa.setHtml( 'foo baz bar' ); } ); The plugin checks if Advanced Custom Fields is active in your WordPress instance and adds a custom setting to each field
(only for input within text, radio and checkbox type, textarea and select elements) allowing you to add his value
to SEMrush check without having to write any additional JavaScript code.
The plugin also automatically add to text used by SEMrush checks, the values of all HTML elements
with swa-scf class or data-swa-scf attribute.
This will applied only for input (within text, radio and checkbox type), textarea, and select elements.
Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
Enrico Sorcinelli
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Add a translation widget to your site so users can switch languages easily and access content in their preferred language.
Use a countdown to download widget that reveals files after the timer ends, builds anticipation, and guides visitors toward higher engagement.
Use wake up notifications to re engage visitors with custom alerts that capture attention, boost interaction, and help increase conversions across your site.
Show Vimeo videos with a Vimeo carousel that displays clips in a smooth, flexible layout to boost visibility and engagement.
Use social media links with sticky buttons that keep your profiles visible, boost engagement, and help promote your content more effectively across your site.
Show Tripadvisor reviews to build trust, improve credibility, and help visitors make confident booking decisions that support higher property sales.
Show Capterra reviews to build trust, strengthen credibility, and help visitors make confident software buying decisions that support higher sales.
Add an AI chatbot that answers user questions by crawling your site, using uploaded content, and collecting chat interactions.
Add an FAQ section to your site to answer common questions, reduce support requests, and give visitors a smoother and more confident user experience.
Create interactive infographics with a ratio widget that uses custom icons, dynamic tooltips, and clear visuals to help visitors understand data quickly.
Encourage interaction with social votes that let visitors like, upvote, and rank content, boosting engagement and guiding better decisions.
Add customizable popups to your site to capture attention, deliver messages, and drive actions like signups or conversions.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
