Skip to content

Commit

Permalink
upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
manikantakailasa committed Apr 2, 2024
1 parent b0b716b commit 7edea61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ function ( $value ) {
'newfold_container_set',
function ( Container $container ) {

NFD_DATA_MODULE_VERSION === '2.4.22' && nfd_update_options_table( $container );

register_activation_hook(
$container->plugin()->file,
function () use ( $container ) {
Expand Down
10 changes: 10 additions & 0 deletions upgrades/2.4.22.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

use NewfoldLabs\WP\ModuleLoader\Container;

add_action(
'newfold_container_set',
function ( Container $container ) {
nfd_update_options_table( $container );
}
);

0 comments on commit 7edea61

Please sign in to comment.