Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat: Update maintenance mode hook to fire on 'wp' action
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Secchi committed Aug 10, 2024
1 parent 5e9aa8b commit 7288a2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/base/development/class-maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function register() {
return;
}

add_action( 'init', array( $this, 'check_excluded_pages' ) );
add_action( 'wp', array( $this, 'check_excluded_pages' ) );
}


Expand Down
4 changes: 3 additions & 1 deletion mu-plugins/project-custom-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ function () {
add_filter(
'writepoetry_maintenance_excluded_pages',
function ( $condition ) {
$condition[''] = 'cart';
$condition[] = 'cart';
$condition[] = 'sample-page';
return $condition;
}
);


// Choose to enable or disable product image zoom on product page (to disable change 'yes' to 'no').
add_filter(
'pre_option_writepoetry_product_zoom',
Expand Down

0 comments on commit 7288a2a

Please sign in to comment.