wordpress插件之ACF Content Analysis for Yoast SEO

ACF Content Analysis for Yoast SEO的作者是Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast,目前有100,000+个有效安装。已经Tested with 5.4.1版本的wordpress。
Description

This plugin ensures that Yoast SEO analyzes all ACF content including Flexible Content and Repeaters.

Yoast SEO for WordPress content and SEO analysis does not take in to account the content of a post’s Advanced Custom Fields. This plugin uses the plugin system of Yoast SEO for WordPress 3.1+ to hook into the analyser in order to add ACF content to the SEO analysis.

This had previously been done by the WordPress SEO ACF Content Analysis plugin but that no longer works with Yoast 3.0. Kudos to ryuheixys, the author of that plugin, for the original idea.

This Plugin is compatible with the free ACF 4 Version as well as with the PRO Version 5. Please be aware that it ignores Pro Add-Ons for Version 4. In that case please upgrade to ACF PRO Version 5.

If you have issues, please submit them on GitHub

Previously called Yoast ACF Analysis.

过滤器
REMOVE SPECIFIC FIELD FROM SCORING
add_filter( 'yoast-acf-analysis/blacklist_name', function ( $blacklist_name ) {
$blacklist_name->add( 'my-field-name' );
return $blacklist_name;
});

REMOVE FIELD TYPE FROM SCORING
add_filter( 'yoast-acf-analysis/blacklist_type', function ( $blacklist_type ) {
// text, image etc
$blacklist_type->add( 'text' );
$blacklist_type->add( 'image' );
return $blacklist_type;
});

DEFINE CUSTOM FIELD A SPECIFIC HEADING VALUE
add_filter( 'yoast-acf-analysis/headlines', function ( $headlines ) {
// value from 1-6, 1=h1, 6=h6
$headlines['field_591eb45f2be86'] = 3;
return $headlines;
});

CHANGE REFRESH RATE
add_filter( 'yoast-acf-analysis/refresh_rate', function () {
// Refresh rates in milliseconds
return 1000;
});

微慕商城——精选wordpress插件及wordpress主题,帮助站长快速生成wordpress小程序。
微慕WordPress小程序商城 » wordpress插件之ACF Content Analysis for Yoast SEO

提供最优质的资源集合

立即查看 了解详情