Skip to content

Commit

Permalink
Merge pull request #37 from newfold-labs/add/default-fresh-filter
Browse files Browse the repository at this point in the history
add a filter for coming-soon default fresh value
  • Loading branch information
circlecube authored May 31, 2024
2 parents 7a299ee + ce61e3d commit 05112a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upgrades/1.1.18.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

add_action( 'newfold_container_set', function ( Container $container ) {
$isFreshInstall = $container->has( 'isFreshInstallation' ) ? $container->get( 'isFreshInstallation' ) : false;
$isFreshInstall = apply_filters( 'newfold/coming-soon/filter/default/fresh', $isFreshInstall );
if ( $isFreshInstall ) {
$comingSoonService = new Service();
$comingSoonService->enable( false );
Expand Down

0 comments on commit 05112a5

Please sign in to comment.