From 92b1ebdcccbfb39fa0135869e889df0db4b24a4f Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 13 May 2024 17:44:01 -0400 Subject: [PATCH] reference global wp hook methods --- includes/StagingFeatureHooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/StagingFeatureHooks.php b/includes/StagingFeatureHooks.php index 8fa6ca1..a0e48fb 100644 --- a/includes/StagingFeatureHooks.php +++ b/includes/StagingFeatureHooks.php @@ -19,13 +19,13 @@ public function __construct() { public function hooks() { // Filter vale based on context - add_filter( 'newfold/features/filter/isEnabled:staging', array( $this, 'filterValue' ) ); + \add_filter( 'newfold/features/filter/isEnabled:staging', array( $this, 'filterValue' ) ); // Force disable based on context - add_action( 'newfold/features/action/onEnable:staging', array( $this, 'maybeDisable' ) ); + \add_action( 'newfold/features/action/onEnable:staging', array( $this, 'maybeDisable' ) ); // Check if should disable on setup - add_action( 'after_setup_theme', array( $this, 'maybeDisable' ) ); + \add_action( 'after_setup_theme', array( $this, 'maybeDisable' ) ); }