Plugin info

Total downloads: 3,152
Active installs: 80
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 6/17/2019 (2388 days ago)
Added to WordPress: 2/14/2019 (6 years old)
Minimum WordPress version: 4.4
Tested up to WordPress version: 5.2.23
Minimum PHP version: 5.2.4

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2388 days ago

20/100

Is SEO Writing Assistant SEMrush Custom Fields abandoned?

Possibly abandoned (last update 2388 days ago).

Compatibility

Requires WordPress: 4.4
Tested up to: 5.2.23
Requires PHP: 5.2.4

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Semrush SEO Writing Assistant
Rating 2.8/5 (25 reviews)Active installs 10,000
Yoast SEO – Advanced SEO with real-time guidance and built-in AI
Rating 4.8/5 (27,779 reviews)Active installs 10,000,000
BoldGrid Easy SEO – Simple and Effective SEO
Rating 3.0/5 (3 reviews)Active installs 50,000
Yoast SEO: Search Index Purge
Rating 2.3/5 (12 reviews)Active installs 10,000
WordPress Image SEO
Rating 2.9/5 (17 reviews)Active installs 1,000
Topic SEO Content Optimization Tool
Rating 4.0/5 (4 reviews)Active installs 1,000

Description

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.

Usage

Once the plugin is activated you can configure it by defining following constants in your wp-config.php:

  • SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_AUTOENABLE

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 );
  • SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_INTERVAL

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).

API

WordPress Hooks

**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.

JavaScript Event

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.

JavaScript API

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' );
} );

Advanced Custom Fields

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.

Autodiscovery

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.

Installation

This section describes how to install the plugin and get it working.

  • Upload the plugin files to the /wp-content/plugins/seo-writing-assistant-semrush-custom-fields directory, or install the plugin through the WordPress Plugins screen directly.
  • Activate the plugin through the Plugins screen in WordPress.

Frequently Asked Questions

Does it work with Gutenberg?

Yes.

Review feed

No reviews available

Screenshots

  1. The Advanced Custom Fields custom setting.

    The Advanced Custom Fields custom setting.

Changelog

For SEO Writing Assistant SEMrush Custom Fields changelog, please see the Releases page on GitHub.