ray) ( $request->get_param( 'customThemes' ) ?? [] );
// Save custom themes data and return REST response.
$result = $this->themes_data_obj->update_custom_themes_file( $custom_themes );
if ( ! $result ) {
return rest_ensure_response(
[
'result' => false,
'error' => esc_html__( 'Can\'t save theme data.', 'wpforms-lite' ),
]
);
}
return rest_ensure_response( [ 'result' => true ] );
}
}