From c19264ac916707096fe294d996a1b7fb85206b34 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Mar 2026 19:55:31 +0000
Subject: [PATCH] =Furthering along the complete refactor. Added some basic setup for is_content taxonomies, including a page for an archive of the terms.
---
inc/utility/setup.php | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/inc/utility/setup.php b/inc/utility/setup.php
index 9cbe572..e386de0 100644
--- a/inc/utility/setup.php
+++ b/inc/utility/setup.php
@@ -5,3 +5,21 @@
require(JVB_DIR.'/inc/utility/helpers.php');
require(JVB_DIR.'/inc/utility/Validator.php');
require(JVB_DIR.'/inc/utility/Image.php');
+
+
+function jvb_filter_content(string $content):string
+{
+ $filters = [
+ 'wptexturize',
+ 'convert_chars',
+ 'wpautop',
+ 'shortcode_unautop',
+ 'prepend_attachment',
+ 'do_shortcode'
+ ];
+
+ foreach ($filters as $filter) {
+ $content = apply_filters($filter, $content);
+ }
+ return $content;
+}
--
Gitblit v1.10.0