Skip to content

Commit

Permalink
Remove logic that will change mm_coming_soon value when the nfd_comin…
Browse files Browse the repository at this point in the history
…g_soon value is changed (moved to module)
  • Loading branch information
wpscholar committed Jan 17, 2024
1 parent f8ebfe7 commit b015497
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions inc/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,3 @@ function bluehost_install_date_filter( $install_date ) {
return bluehost_get_plugin_install_date();
}
add_filter( 'nfd_install_date_filter', __NAMESPACE__ . '\\bluehost_install_date_filter' );


/**
* Update mm value when updating nfd one
*
* @param mixed $new_option New option value.
* @param mixed $old_option Previous option value.
*
* @return mixed
*/
function site_launched( $new_option, $old_option ) {
update_option( 'mm_coming_soon', $new_option );
return $new_option;
}

add_filter( 'pre_update_option_nfd_coming_soon', __NAMESPACE__ . '\\site_launched', 10, 2 );

0 comments on commit b015497

Please sign in to comment.