SEO Writing Assistant SEMrush Custom Fields
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.
Top keywords
- semrush19×3.54%
- custom13×2.43%
- fields11×2.05%
- custom fields10×1.87%
- text8×1.49%
- post7×1.31%
- semrush custom7×1.31%
- semrush custom fields7×1.31%
- swa7×1.31%
- assistant6×1.12%
- check6×1.12%
- jquery6×1.12%
StoryChief
StoryChief is a smart AI content operations platform that helps organizations turn scattered knowledge, disconnected tools, and fragmented workflows into coordinated content execution. Connect your website, CRM, DAM, analytics, notes, communication tools, and other systems so StoryChief can transform business context into actionable strategies, structured workflows, high-quality content, and multi-channel execution. From strategy and planning to collaboration, approvals, publishing, amplification, and performance tracking, StoryChief gives teams one connected flow to manage every stage of the content lifecycle. Unlike generic AI tools, StoryChief combines AI assistance with human control, approval workflows, brand governance, and workspace-based collaboration. Every output stays editable, reviewable, and aligned with your organization’s standards. Teams use StoryChief to coordinate campaigns, internal communications, thought leadership, editorial workflows, advocacy programs, multi-brand publishing, and cross-channel content operations — all from one centralized platform. Actions and filters Developers: This plugin has numerous actions and filters available that can be used to modify the default behaviour of the plugin. Actions: * storychief_after_publish_action($payload) * storychief_after_delete_action($payload) * storychief_save_author_action($payload) * storychief_save_tags_action($payload) * storychief_save_categories_action($payload) * storychief_save_featured_image_action($payload) * storychief_save_seo_action($payload) * storychief_sideload_images_action($payload) * storychief_image_sideload_error($error, $source_url, $post_id) Filters: * storychief_before_handle_filter($payload) * storychief_is_draft_status($is_draft, $payload) * storychief_change_post_type($post_type, $payload) * storychief_alter_response($response) * storychief_publish_permalink($permalink, $postID) Requirements This plugin requires a StoryChief account. Not a StoryChief user yet? Sign up for free! PHP version 7.0 or higher WordPress version 6.2 or higher (uses the HTML Tag Processor for responsive image sideloading)
Top keywords
- storychief21×7.69%
- payload11×4.03%
- payload storychief11×4.03%
- action8×