From 9ec1d0c9e7b610c2cb307e60aef4e8275f7a72dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Thu, 10 Jun 2021 12:11:49 +0200 Subject: [PATCH] Fix $priority of function add_filter --- src/PostTypeManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostTypeManager.php b/src/PostTypeManager.php index f7341f9..2eb0deb 100644 --- a/src/PostTypeManager.php +++ b/src/PostTypeManager.php @@ -102,7 +102,7 @@ public function registerPostTypes($classNames) } } } - }, '99', 2); // use high priority value to ensure this happens after acf finishes saving its metadata + }, 99, 2); // use high priority value to ensure this happens after acf finishes saving its metadata $this->registered = true; do_action('oowp/all_post_types_registered', $this->postTypes);