Skip to content

Commit

Permalink
check function_exists first
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed May 21, 2024
1 parent 191492a commit 1702b13
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

namespace NewfoldLabs\WP\Module\Staging;

add_filter(
'newfold/features/filter/register',
function( $features ) {
return array_merge( $features, array( StagingFeature::class ) );
}
);
if ( function_exists( 'add_filter' ) ) {
add_filter(
'newfold/features/filter/register',
function( $features ) {
return array_merge( $features, array( StagingFeature::class ) );
}
);
}

0 comments on commit 1702b13

Please sign in to comment.