前言介紹
- 這款 WordPress 外掛「SEO Writing Assistant SEMrush Custom Fields」是 2019-02-13 上架。
- 目前有 70 個安裝啟用數。
- 上一次更新是 2019-06-17,距離現在已有 2445 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
seo | Readability | custom fields | Content analysis | content marketing |
內容簡介
這款 SEMrush SEO Writing Assistant 插件只從文章的 title 和 content 元素中讀取內容進行即時檢查。
這個輕量級的插件允許你在檢查時使用任意值,除了這些值之外。
因此,如果您使用某種頁面構建器、字段管理器等工具,您只需要在您的 wp_config.php 文件中定義一個常數,並最好寫一點 JavaScript 代碼以指定哪些字段。
請注意,本插件不會取代 SEMrush SEO Writing Assistant,而是旨在一起使用。
用法
啟用插件後,您可以在 wp-config.php 中定義以下常數來配置它:
SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_AUTOENABLE
自動啟用 SEMrush 檢查的附加文本值使用。預設值為 false。
這是您必須進行的唯一配置,以使插件功能正常運作。
例如:
define( 'SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_AUTOENABLE', true );
SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_INTERVAL
允許更改 SEMrush 檢查使用的文本自動更新之間的間隔。
默認值為 5 秒。例如:
define( 'SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_INTERVAL', 10 );
您還可以使用 semrush_seo_writing_assistant_post_types(可選)過濾器和 SeoWritingAssistantSEMrushCustomFields JavaScript 對象進行插件的編程控制(見下文)。
API
WordPress Hooks
**swa_semrush_custom_fields_settings **
過濾插件設置值。
apply_filters( 'swa_semrush_custom_fields_settings', array $settings )
semrush_seo_writing_assistant_post_types
過濾要啟用插件的文章類型。預設為 array( 'post', 'page', 'product' )。
apply_filters( 'semrush_seo_writing_assistant_post_types', array $post_types )
該過濾器與 SEMrush SEO Writing Assistant 插件(自版本 1.0.4 起使用)使用相同的名稱,用於相同的目的。
JavaScript Event
seo-writing-assistant-semrush
此事件可允許您更新 SEMrush 分析所用的文本。
以下示例將使用 excerpt 和 my_custom_fields 自定義字段值(可以在块和傳統編輯器中使用)每 5 秒為 SEMrush 檢查更新一次文本:
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();
} )
} );
請注意,如果您先前已將常數 SWA_SEMRUSH_CUSTOM_FIELDS_PLUGIN_AUTOENABLE 定義為 true,
則不必創建新的 SeoWritingAssistantSEMrushCustomFields 對象。
JavaScript API
setHtml()
以下示例將使用任意值對 SEMrush 檢查使用的文本進行程序化更新:
jQuery( document ).ready( function() {
var swa = new SeoWr
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SEO Writing Assistant SEMrush Custom Fields」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Yoast SEO – Advanced SEO with real-time guidance and built-in AI 》Yoast SEO:#1 WordPress SEO 外掛, 自 2008 年以來,Yoast SEO 幫助全球數百萬個網站在搜尋引擎中排名更高。, Yoast 的使命是為所有人提供 SEO 服務。我們的...。
LiteSpeed Cache 》LiteSpeed Cache for WordPress(LSCWP)是一種全方位的網站加速外掛,包括獨家的伺服器層快取和一系列的優化功能。, LSCWP 支援 WordPress Multisite 及大多...。Rank Math SEO – AI SEO Tools to Dominate SEO Rankings 》Rank Math SEO – WordPress 最佳 SEO 外掛, 第一款使用人工智慧 (AI) 的 WordPress SEO 外掛 🦾, ★★★★★, SEO 是任何網站最穩定的流量來源。我們創建了 Rank M...。
All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic 》assic Editor, so you don't even need to leave your WordPress dashboard to optimize your content., Here’s what another smart WordPress user ha...。
XML Sitemap Generator for Google 》使用這個外掛程式可以大大改善 SEO,產生特殊的 XML 網站地圖,幫助 Google、Bing、Yahoo 和 Ask.com 等搜索引擎更好地索引您的網站。, 有了這樣的網站地圖,...。
SpeedyCache – Cache, Optimization, Performance 》SpeedyCache 是一款 WordPress 外掛,能透過網頁快取、最小化檔案和檔案壓縮的方式,幫助您減少網站載入時間。, 您可以在 https://speedycache.com/docs 找到...。Broken Link Checker by AIOSEO – Easily Fix/Monitor Internal and External links 》總結:Broken Link Checker by AIOSEO 是一款必備的工具,可以確保您的網站上所有的內部和外部連結都能正常運作。快速檢查您的網站中的錯誤鏈接,並輕鬆修復...。
SEOPress – On-site SEO & Analytics 》最佳的 WordPress SEO 外掛程式,與所有網頁建構工具和佈景主題全部整合!, 現在增加了 AI 功能,自動產生 meta 標題和描述!, SEOPress 是一個強大的 WordPr...。
SureRank SEO – Smart Assistant with Meta Tags, Social Preview, XML Sitemap, and Schema 》總結:SureRank 是一款 WordPress SEO 外掛,以全新的方式簡化網站優化, 是個人化的 SEO 助手,旨在通過消除技術術語並提供初學者友好的界面來簡化 SEO 任務...。PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
Cloudflare 》這個外掛可以為您做些什麼, , 自動平台優化 (APO), 使用 Cloudflare 的自動平台優化 (APO) 外掛,可將您的 WordPress 網站加速達 300%。APO 讓 Cloudflare 可...。The SEO Framework – Fast, Automated, Effortless. 》這是最快速且唯一符合 WordPress 和搜尋引擎規定的 SEO 外掛程式,功能完整。使用經過驗證的方式來優化您的網站的 SEO。這是一款乾淨、專注、可延伸、無限制...。
YARPP – Yet Another Related Posts Plugin 》WordPress 相關文章外掛, Yet Another Related Posts Plugin (YARPP) 是一個經過專業維護、高度自訂和功能豐富的外掛程式,可以顯示與當前文章相關的頁面、文...。SEO SIMPLE PACK 》“SEO SIMPLE PACK”是一款非常簡單的SEO外掛程式。, , 輸出基本的meta標籤,是SEO措施所必需的。, 可以對每個頁面類型進行設置。, 您也可以設置SN...。
Schema & Structured Data for WP & AMP 》d-data-for-wp.com/docs/article/how-many-schema-types-do-we-support/" rel="nofollow ugc">查看所有支援的類型,目前已支援超過35種類型,其中包括部落格...。
