get_col( $wpdb->prepare( "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE %s", 'cf7_mch_%' ) ); $updated = 0; foreach ( $option_names as $option_name ) { $config = get_option( $option_name ); if ( is_array( $config ) && isset( $config['logfileEnabled'] ) ) { unset( $config['logfileEnabled'] ); update_option( $option_name, $config ); ++$updated; } } return $updated; } public static function is_scheduled(): bool { return (bool) wp_next_scheduled( self::DAILY_HOOK ); } public static function get_next_run() { return wp_next_scheduled( self::DAILY_HOOK ); } }