Jetpack related posts filter for turning off related posts broken i WP 5.x
-
Using the following code the related posts are no longer removed.
function jetpackme_no_related_posts( $options ) {
if ( is_single( array( 17, 19, 1, 11 ) ) ) {
$options[‘enabled’] = false;
}
return $options;
}
add_filter( ‘jetpack_relatedposts_filter_options’, ‘jetpackme_no_related_posts’ );Even just returning $options[‘enabled’] = false; does not work.
The filter is documented here:
https://jetpack.com/support/related-posts/customize-related-posts/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Jetpack related posts filter for turning off related posts broken i WP 5.x’ is closed to new replies.