Skip to content

Commit

Permalink
reference global wp hook methods
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed May 13, 2024
1 parent db67e85 commit 92b1ebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/StagingFeatureHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );

}

Expand Down

0 comments on commit 92b1ebd

Please sign in to comment.