From 8f3af674bf144b37859485abda79dff6db6c6d8a Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 10 May 2020 17:12:56 +0200 Subject: [PATCH] Don't add JSON data if o2_process_the_content is false --- o2.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/o2.php b/o2.php index 21bb45f..289daab 100644 --- a/o2.php +++ b/o2.php @@ -887,6 +887,10 @@ public static function add_json_data( $content ) { if ( ! is_page() && ! empty( $post->post_password ) ) { return $content; } + + if ( ! apply_filters( 'o2_process_the_content', true ) ) { + return $content; + } $conversation = array(); if ( is_single() || is_category() || is_archive() || is_author() || is_home() || is_page() || is_search() ) {